From 45db74ba089110e6aa61bb0ecb7866eb517a499d Mon Sep 17 00:00:00 2001 From: hvlad Date: Sun, 14 Feb 2010 22:56:41 +0000 Subject: [PATCH] Fixed bug CORE-2867 : SuperClassic leaks semaphores on disconnect --- src/jrd/cch.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/jrd/cch.cpp b/src/jrd/cch.cpp index 4e557df199..6e5d68aa16 100644 --- a/src/jrd/cch.cpp +++ b/src/jrd/cch.cpp @@ -1254,7 +1254,7 @@ void CCH_fini(thread_db* tdbb) { dbb->dbb_bufferpool->deallocate(bcb->bcb_memory.pop()); } -#ifdef CACHE_WRITER + // Dispose off any associated latching semaphores while (QUE_NOT_EMPTY(bcb->bcb_free_lwt)) { @@ -1263,7 +1263,6 @@ void CCH_fini(thread_db* tdbb) LatchWait* lwt = (LatchWait*) BLOCK(que_inst, LatchWait*, lwt_waiters); delete lwt; } -#endif } } // try