diff options
-rw-r--r-- | s/d_state.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/s/d_state.cpp b/s/d_state.cpp index 962b933037d..20b4089fb76 100644 --- a/s/d_state.cpp +++ b/s/d_state.cpp @@ -518,6 +518,7 @@ namespace mongo { return false; } + Timer relockTime; { dbtemprelease unlock; @@ -530,7 +531,10 @@ namespace mongo { return false; } } - + if ( relockTime.millis() >= ( cmdLine.slowMS - 10 ) ) { + log() << "setShardVersion - relocking slow: " << relockTime.millis() << endl; + } + info->setVersion( ns , version ); result.appendTimestamp( "oldVersion" , oldVersion ); result.append( "ok" , 1 ); |