enable GOLD reservation AM debit

git-svn-id: svn://opensvn.adaptivecomputing.com/maui/trunk@36 3f5042e3-fb1d-0410-be18-d6ca2573e517
This commit is contained in:
dev
2005-10-11 17:08:01 +00:00
parent 443a98f0ec
commit 0775101d18
3 changed files with 16 additions and 20 deletions
+1 -1
View File
@@ -1 +1 @@
#define MSCHED_VERSION "maui-3.2.6p14-snap.1127489156"
#define MSCHED_VERSION "maui-3.2.6p14-snap.1127934075"
+14 -18
View File
@@ -686,7 +686,7 @@ int MAMAllocRDebit(
const char *FName = "MAMAllocRDebit";
MDB(3,fAM) MLog("%s(%s,SC,ErrMsg)\n",
MDB(3,fAM) MLog("%s(%s,RIndex,SC,ErrMsg)\n",
FName,
(R != NULL) ? R->Name : "NULL");
@@ -855,24 +855,17 @@ int MAMAllocRDebit(
A = NULL;
}
MXMLToString(E,AMISBuffer,sizeof(AMISBuffer),NULL,TRUE);
rc = MAMQBDoCommand(
AM,
0,
AMISBuffer,
(void **)&E,
&tmpSC,
AMIRBuffer);
if (E != NULL)
MXMLDestroyE(&E);
if (rc == FAILURE)
if (MAMGoldDoCommand(E,&AM->P,RIndex,ErrMsg) == FAILURE)
{
if (RIndex != NULL)
*RIndex = mhrAMFailure;
MDB(2,fAM) MLog("ALERT: cannot debit allocation for reservation\n");
if ((AM->JFAction == mamjfaNONE) &&
(RIndex != NULL) &&
(*RIndex != mhrNoFunds))
{
return(SUCCESS);
}
return(FAILURE);
}
} /* END BLOCK */
@@ -2793,6 +2786,9 @@ int MAMQBDoCommand(
(A != NULL) ? A->Name : "NULL",
CmdIndex,
Transaction);
if (E != NULL)
*E = NULL;
if ((A == NULL) ||
((A->Type != mamtQBANK) && (A->Type != mamtGOLD)))
+1 -1
View File
@@ -1006,7 +1006,7 @@ const char *MBFMPolicy[] = {
"SECONDS",
NULL };
const char *MJSPolicy[] = { "MINPROC", "MAXPROC", "NDMAXPROC", NULL };
const char *MJSPolicy[] = { "MINPROC", "MAXPROC", "NDMAXPROC", NULL };
const char *MResPolicy[] = { "DEFAULT", "HIGHEST", "CURRENTHIGHEST", "NEVER" };
const char *MHoldType[] = { NONE, "User", "System", "Batch", "Defer", "All", NULL };
const char *MComType[] = { "ROUNDROBIN", "BROADCAST", "TREE", "MASTERSLAVE", NULL };