From 7e8d73fe43934b20ac4db5855dcf6f50a6dcd5d5 Mon Sep 17 00:00:00 2001 From: Jan Steemann Date: Thu, 21 Nov 2013 22:54:06 +0100 Subject: [PATCH] added assertion --- arangod/VocBase/vocbase.c | 1 + 1 file changed, 1 insertion(+) diff --git a/arangod/VocBase/vocbase.c b/arangod/VocBase/vocbase.c index 96112d00d0..3da53be10c 100644 --- a/arangod/VocBase/vocbase.c +++ b/arangod/VocBase/vocbase.c @@ -2271,6 +2271,7 @@ bool TRI_UseVocBase (TRI_vocbase_t* vocbase) { void TRI_ReleaseVocBase (TRI_vocbase_t* vocbase) { TRI_LockSpin(&vocbase->_usage._lock); + TRI_ASSERT_MAINTAINER(vocbase->_usage._refCount > 0); --vocbase->_usage._refCount; TRI_UnlockSpin(&vocbase->_usage._lock); }