summaryrefslogtreecommitdiff
path: root/src/mongo/db/dur.h
diff options
context:
space:
mode:
authordwight <dwight@10gen.com>2012-02-26 15:14:55 -0500
committerdwight <dwight@10gen.com>2012-02-26 15:14:55 -0500
commita6878a451a047e9ed09038e9578299a0db4ba7fd (patch)
tree603503e09d40938b42ce1a39bb22fb433768b2e1 /src/mongo/db/dur.h
parent44ce4fbfda47a36aeeacd40584910d15bbeeeefd (diff)
downloadmongo-a6878a451a047e9ed09038e9578299a0db4ba7fd.tar.gz
SERVER-4328 change how commitIfNeeded called. call before lock acquisition rather than after; given we have more lock types now this works out better as the commitIfNeeded can grab the lock is needs of the right type if it were to have to lock. not complete solution as somtimes we dont unlock for very long times, but part of the refactoring
Diffstat (limited to 'src/mongo/db/dur.h')
-rw-r--r--src/mongo/db/dur.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mongo/db/dur.h b/src/mongo/db/dur.h
index 2d6fcdcf1e7..691666861b3 100644
--- a/src/mongo/db/dur.h
+++ b/src/mongo/db/dur.h
@@ -14,6 +14,8 @@ namespace mongo {
namespace dur {
+ void releasedWriteLock();
+
// a smaller limit is likely better on 32 bit
#if defined(__i386__) || defined(_M_IX86)
const unsigned UncommittedBytesLimit = 50 * 1024 * 1024;