0
0
mirror of https://github.com/mongodb/mongo.git synced 2024-12-01 01:21:03 +01:00

dblock is deprecated

This commit is contained in:
Alberto Lerner 2010-11-24 18:49:19 -05:00
parent 746be4b0fb
commit 2382b52810

View File

@ -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 ) );
}