summaryrefslogtreecommitdiff
path: root/db/repl_block.cpp
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2010-07-02 17:24:05 -0400
committerEliot Horowitz <eliot@10gen.com>2010-07-02 17:24:05 -0400
commit6468ece9c373c7eea59141b880399e2a81fd241a (patch)
tree0e135bd9686d59dc9b4d0ea58d565a5361317759 /db/repl_block.cpp
parent4ce84ab192072fd8027b72993f81ac019455df01 (diff)
downloadmongo-6468ece9c373c7eea59141b880399e2a81fd241a.tar.gz
get write lock in DEBUG mode
Diffstat (limited to 'db/repl_block.cpp')
-rw-r--r--db/repl_block.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/db/repl_block.cpp b/db/repl_block.cpp
index 0ff0210ab3a..2bc9f31506b 100644
--- a/db/repl_block.cpp
+++ b/db/repl_block.cpp
@@ -116,6 +116,7 @@ namespace mongo {
}
dbMutex.assertAtLeastReadLocked();
+ DEV dblock lk;
BSONObj res;
if ( Helpers::findOne( NS , ident.obj , res ) ){
assert( res["syncedTo"].type() );