From 5d35a67f8d4d140afbc9c88ac47abc36f8927a29 Mon Sep 17 00:00:00 2001 From: Esha Maharishi Date: Wed, 5 Oct 2016 13:13:59 -0400 Subject: SERVER-26459 use AutoGetCollection instead of AutoGetOrCreateDb in the RangeDeleter --- src/mongo/db/dbhelpers.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.1