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:
parent
746be4b0fb
commit
2382b52810
@ -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 ) );
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user