diff options
author | Esha Maharishi <esha.maharishi@mongodb.com> | 2016-10-04 17:27:46 -0400 |
---|---|---|
committer | Esha Maharishi <esha.maharishi@mongodb.com> | 2016-10-05 13:01:29 -0400 |
commit | 0cb49ab4d834376615d4a3c8b1e1b7b9f5bf9559 (patch) | |
tree | ed5e5f572d785817be84c63d2b54eb7315ec7f03 /src/mongo/db/dbhelpers.cpp | |
parent | d6884f02f84f3de70897ff0534921c91a036e05e (diff) | |
download | mongo-0cb49ab4d834376615d4a3c8b1e1b7b9f5bf9559.tar.gz |
SERVER-26459 use AutoGetCollection instead of AutoGetOrCreateDb in the RangeDeleter
Diffstat (limited to 'src/mongo/db/dbhelpers.cpp')
-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 d7de66232fb..4b441b90bd3 100644 --- a/src/mongo/db/dbhelpers.cpp +++ b/src/mongo/db/dbhelpers.cpp @@ -358,7 +358,7 @@ long long Helpers::removeRange(OperationContext* txn, while (1) { // Scoping for write lock. { - OldClientWriteContext ctx(txn, ns); + AutoGetCollection ctx(txn, NamespaceString(ns), MODE_IX, MODE_IX); Collection* collection = ctx.getCollection(); if (!collection) break; |