diff options
author | Aaron <aaron@10gen.com> | 2009-04-06 16:33:44 -0400 |
---|---|---|
committer | Aaron <aaron@10gen.com> | 2009-04-06 16:33:44 -0400 |
commit | 0875581b5e67530e6d6e567968906d2553dcb4aa (patch) | |
tree | 45bbd907abe3e17b1a0c41cc8c839298e4018019 /s/d_logic.cpp | |
parent | 0af6ebeea2e641001ebf855ddf23f89bbb92c63d (diff) | |
parent | fc5b28e636cb276a5340cc1694ebaea892d8f1e7 (diff) | |
download | mongo-v0.9.tar.gz |
Diffstat (limited to 's/d_logic.cpp')
-rw-r--r-- | s/d_logic.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/s/d_logic.cpp b/s/d_logic.cpp index 9fe57f17872..7b639b78b83 100644 --- a/s/d_logic.cpp +++ b/s/d_logic.cpp @@ -291,7 +291,13 @@ namespace mongo { // now we're locked myVersions[ns] = newVersion; - + NSVersions * versions = clientShardVersions.get(); + if ( ! versions ){ + versions = new NSVersions(); + clientShardVersions.reset( versions ); + } + (*versions)[ns] = newVersion; + BSONObj res; bool ok; |