diff options
author | Eliot Horowitz <eliot@10gen.com> | 2011-03-07 10:35:33 -0500 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2011-03-07 10:36:00 -0500 |
commit | eb3d063c956539506bc830b64abee0f04b1e03d4 (patch) | |
tree | 921939edf263f012cb99b4279cb864f1e84ef7c0 | |
parent | 7a20ea7d74ce6eb6eb8305d1bdff959eed3385ce (diff) | |
download | mongo-eb3d063c956539506bc830b64abee0f04b1e03d4.tar.gz |
fix setShardVersion on a new db
-rw-r--r-- | s/d_state.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/s/d_state.cpp b/s/d_state.cpp index 11fbcef7944..00982ddcfe8 100644 --- a/s/d_state.cpp +++ b/s/d_state.cpp @@ -507,7 +507,9 @@ namespace mongo { } // step 4 + // TODO: this step needs to be clean up. dblock setShardVersionLock; // TODO: can we get rid of this?? + Client::Context cx( ns ); if ( oldVersion > 0 && globalVersion == 0 ) { // this had been reset |