Include the next resource id allocated in casr diagnostic

This commit is contained in:
Jeff Hill
1998-12-21 17:49:05 +00:00
parent 842f9e33cf
commit 1982c777be
3 changed files with 14 additions and 2 deletions

View File

@@ -190,6 +190,8 @@ LOCAL void *casCalloc (size_t count, size_t size);
LOCAL void *casMalloc (size_t size);
LOCAL unsigned nextRsrvResourceID;
/*
* CAMESSAGE()
@@ -1746,7 +1748,6 @@ struct dbAddr *pAddr,
unsigned cid
)
{
static unsigned bucketID;
unsigned *pCID;
struct channel_in_use *pchannel;
int status;
@@ -1783,7 +1784,7 @@ unsigned cid
* bypass read only warning
*/
pCID = (unsigned *) &pchannel->sid;
*pCID = bucketID++;
*pCID = nextRsrvResourceID++;
/*
* Verify that this id is not in use
@@ -2201,3 +2202,10 @@ LOCAL void *casMalloc(size_t size)
return malloc(size);
}
/*
* getNextRsrvResourceID()
*/
unsigned getNextRsrvResourceID()
{
return nextRsrvResourceID;
}

View File

@@ -477,6 +477,8 @@ void casr (unsigned level)
freeListItemsAvail (rsrvChanFreeList),
freeListItemsAvail (rsrvEventFreeList));
printf ("The next resource ID allocated will be %u\n", getNextRsrvResourceID());
if(pCaBucket){
printf( "The server's resource id conversion table:\n");
FASTLOCK(&clientQlock);

View File

@@ -295,6 +295,8 @@ struct client *pc
void write_notify_reply(void *pArg);
unsigned getNextRsrvResourceID();
/*
* !!KLUDGE!!
*