diff options
author | Eliot Horowitz <eliot@10gen.com> | 2014-10-21 16:56:41 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2014-10-21 16:56:41 -0400 |
commit | a1a2e24b34d818cfed86b3ad5eb01d62bc375eaa (patch) | |
tree | 3c4e9616c71920cdd027260f69c9440e8d39c997 | |
parent | 29a0043a32be33533ea6dba6d8d73b97d582d311 (diff) | |
download | mongo-a1a2e24b34d818cfed86b3ad5eb01d62bc375eaa.tar.gz |
SERVER-15711: DurThread fix logging of deadlock case
-rw-r--r-- | src/mongo/db/concurrency/lock_state.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/concurrency/lock_state.cpp b/src/mongo/db/concurrency/lock_state.cpp index 8e795982ed6..38d22f69138 100644 --- a/src/mongo/db/concurrency/lock_state.cpp +++ b/src/mongo/db/concurrency/lock_state.cpp @@ -730,7 +730,7 @@ namespace mongo { if ( res == LOCK_OK ) break; invariant( res == LOCK_TIMEOUT ); - if ( ++attempt == 0 ) { + if ( ++attempt % 100 == 0 ) { warning() << "AutoAcquireFlushLockForMMAPV1Commit has not gotten lock in " << attempt << " attempts"; } |