From 2382b5281059aabdd5c95d54f26a5bb8ceceaebb Mon Sep 17 00:00:00 2001 From: Alberto Lerner Date: Wed, 24 Nov 2010 18:49:19 -0500 Subject: [PATCH] dblock is deprecated --- s/d_migrate.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/s/d_migrate.cpp b/s/d_migrate.cpp index 372023aa54c..7246ea985ef 100644 --- a/s/d_migrate.cpp +++ b/s/d_migrate.cpp @@ -747,7 +747,7 @@ namespace mongo { myVersion.incMajor(); { - dblock lk; + writelock lk( ns ); assert( myVersion > shardingState.getVersion( ns ) ); shardingState.setVersion( ns , myVersion ); assert( myVersion == shardingState.getVersion( ns ) ); @@ -766,7 +766,7 @@ namespace mongo { log() << "moveChunk commit result: " << res << endl; if ( ! ok ){ { - dblock lk; + writelock lk( ns ); shardingState.setVersion( ns , currVersion ); assert( currVersion == shardingState.getVersion( ns ) ); }