ioc/db: dbLockCleanupRecords() warn only if lockSets remain
This commit is contained in:
@@ -565,12 +565,10 @@ void dbLockCleanupRecords(dbBase *pdbbase)
|
||||
|
||||
forEachRecord(NULL, pdbbase, &freeLockRecord);
|
||||
if(ellCount(&lockSetsActive)) {
|
||||
errlogMessage("Warning: dbLockCleanupRecords() leaking lockSets\n");
|
||||
printf("Warning: dbLockCleanupRecords() leaking lockSets\n");
|
||||
dblsr(NULL,2);
|
||||
}
|
||||
|
||||
assert(ellCount(&lockSetsActive)==0);
|
||||
|
||||
#ifndef LOCKSET_NOFREE
|
||||
while((cur=ellGet(&lockSetsFree))!=NULL) {
|
||||
lockSet *ls = (lockSet*)cur;
|
||||
|
||||
Reference in New Issue
Block a user