diff options
author | Esha Maharishi <esha.maharishi@mongodb.com> | 2016-10-05 13:13:59 -0400 |
---|---|---|
committer | Esha Maharishi <esha.maharishi@mongodb.com> | 2016-10-05 18:15:40 -0400 |
commit | 5d35a67f8d4d140afbc9c88ac47abc36f8927a29 (patch) | |
tree | 1e29094458f2f72074583323347d58b885404877 | |
parent | 424e1fd08ef0ed25a1c3546f70f0d1755bbde83e (diff) | |
download | mongo-5d35a67f8d4d140afbc9c88ac47abc36f8927a29.tar.gz |
SERVER-26459 use AutoGetCollection instead of AutoGetOrCreateDb in the RangeDeleter
-rw-r--r-- | src/mongo/db/dbhelpers.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/dbhelpers.cpp b/src/mongo/db/dbhelpers.cpp index 3180ed87ae1..e0d6da23040 100644 --- a/src/mongo/db/dbhelpers.cpp +++ b/src/mongo/db/dbhelpers.cpp @@ -343,7 +343,7 @@ long long Helpers::removeRange(OperationContext* txn, while (1) { // Scoping for write lock. { - OldClientWriteContext ctx(txn, ns); + AutoGetCollection ctx(txn, NamespaceString(ns), MODE_IX); Collection* collection = ctx.getCollection(); if (!collection) break; |