ioc/db: dbLockCleanupRecords() warn only if lockSets remain

This commit is contained in:
Michael Davidsaver
2017-05-24 18:41:32 -04:00
parent 7efba21d1f
commit 1865e84321

View File

@@ -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;