From a78d754b67040c19714bc4696dd7feb5ce10d412 Mon Sep 17 00:00:00 2001 From: Mathias Stearn Date: Thu, 29 May 2014 15:36:28 -0400 Subject: SERVER-13641 Plumb OperationContext through to getCollection and all Helpers --- src/mongo/db/repl/repl_settings.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/mongo/db/repl/repl_settings.cpp') diff --git a/src/mongo/db/repl/repl_settings.cpp b/src/mongo/db/repl/repl_settings.cpp index 48dad4218cc..65db46755ab 100644 --- a/src/mongo/db/repl/repl_settings.cpp +++ b/src/mongo/db/repl/repl_settings.cpp @@ -90,8 +90,10 @@ namespace repl { { const char* localSources = "local.sources"; Client::ReadContext ctx(txn, localSources); - auto_ptr runner(InternalPlanner::collectionScan(localSources, - ctx.ctx().db()->getCollection(localSources))); + auto_ptr runner( + InternalPlanner::collectionScan(localSources, + ctx.ctx().db()->getCollection(txn, + localSources))); BSONObj obj; Runner::RunnerState state; while (Runner::RUNNER_ADVANCED == (state = runner->getNext(&obj, NULL))) { -- cgit v1.2.1