diff options
author | Eliot Horowitz <eliot@10gen.com> | 2010-02-04 22:51:57 -0500 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2010-02-04 22:51:57 -0500 |
commit | 52427e60ebef9e70fa65f38c31f63bdf6784a9b9 (patch) | |
tree | e1e8c3c28c270036cd3773d3a62da21588ffb95a /db/concurrency.h | |
parent | de8efe0a2aa6df39f1b3d3f0df9101a0be4f12bb (diff) | |
download | mongo-52427e60ebef9e70fa65f38c31f63bdf6784a9b9.tar.gz |
debugging MINOR
Diffstat (limited to 'db/concurrency.h')
-rw-r--r-- | db/concurrency.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/db/concurrency.h b/db/concurrency.h index 9f256f5a10d..b8d9334895c 100644 --- a/db/concurrency.h +++ b/db/concurrency.h @@ -23,6 +23,8 @@ namespace mongo { + string sayClientState(); + /* mutex time stats */ class MutexInfo { unsigned long long start, enter, timeLocked; // all in microseconds @@ -89,7 +91,7 @@ namespace mongo { _state.set(s+1); return; } - massert( 10293 , "internal error: locks are not upgradeable", s == 0 ); + massert( 10293 , (string)"internal error: locks are not upgradeable: " + sayClientState() , s == 0 ); _state.set(1); _m.lock(); _minfo.entered(); |