summaryrefslogtreecommitdiff
path: root/src/mongo/db/dur_commitjob.cpp
diff options
context:
space:
mode:
authordwight <dwight@10gen.com>2012-03-06 13:23:59 -0500
committerdwight <dwight@10gen.com>2012-03-06 13:23:59 -0500
commit82298b9dd4b2af9fdbc465996af38749bd0dd5cc (patch)
treeee2544555482a7c1c7b6e025d6caf826b9eb9a6a /src/mongo/db/dur_commitjob.cpp
parent4a802804a6ef8b8afd39b11a1fedf81c93de34b1 (diff)
downloadmongo-82298b9dd4b2af9fdbc465996af38749bd0dd5cc.tar.gz
SERVER-4328 commitIfNeeded new handling when in a w lock which is tricky
also report curop lockstates as r, w, R, W now instead of read and write
Diffstat (limited to 'src/mongo/db/dur_commitjob.cpp')
-rw-r--r--src/mongo/db/dur_commitjob.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mongo/db/dur_commitjob.cpp b/src/mongo/db/dur_commitjob.cpp
index 2709ef7d444..1251d29b190 100644
--- a/src/mongo/db/dur_commitjob.cpp
+++ b/src/mongo/db/dur_commitjob.cpp
@@ -108,7 +108,7 @@ namespace mongo {
}
void IntentsAndDurOps::clear() {
- d.dbMutex.assertAtLeastReadLocked();
+ assertLockedForCommitting();
commitJob.groupCommitMutex.dassertLocked();
_alreadyNoted.clear();
_intents.clear();
@@ -142,7 +142,7 @@ namespace mongo {
size_t privateMapBytes = 0; // used by _REMAPPRIVATEVIEW to track how much / how fast to remap
void CommitJob::commitingBegin() {
- DEV d.dbMutex.assertAtLeastReadLocked();
+ assertLockedForCommitting();
_commitNumber = _notify.now();
stats.curr->_commits++;
}
@@ -213,7 +213,7 @@ namespace mongo {
if( _nSinceCommitIfNeededCall >= 80 ) {
if( _nSinceCommitIfNeededCall % 40 == 0 ) {
log() << "debug nsincecommitifneeded:" << _nSinceCommitIfNeededCall << " bytes:" << _bytes << endl;
- if( _nSinceCommitIfNeededCall == 120 || _nSinceCommitIfNeededCall == 1200 ) {
+ if( _nSinceCommitIfNeededCall == 240 || _nSinceCommitIfNeededCall == 1200 ) {
log() << "_DEBUG printing stack given high nsinccommitifneeded number" << endl;
printStackTrace();
}