summaryrefslogtreecommitdiff
path: root/src/mongo/db/index_rebuilder.cpp
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2014-08-25 17:25:39 -0400
committerEliot Horowitz <eliot@10gen.com>2014-08-25 18:08:37 -0400
commitf0bb5123f50bb617eb9499539f01779c6e9f5e95 (patch)
tree98cc4abf3c89881691158345435523c5dd6ae37f /src/mongo/db/index_rebuilder.cpp
parentcb3f5cfa43d9565675d2f36c4b0f7cecbad47a49 (diff)
downloadmongo-f0bb5123f50bb617eb9499539f01779c6e9f5e95.tar.gz
SERVER-13635: OperationContext on read paths
Diffstat (limited to 'src/mongo/db/index_rebuilder.cpp')
-rw-r--r--src/mongo/db/index_rebuilder.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/index_rebuilder.cpp b/src/mongo/db/index_rebuilder.cpp
index 39d9544a30c..34cb8fcc597 100644
--- a/src/mongo/db/index_rebuilder.cpp
+++ b/src/mongo/db/index_rebuilder.cpp
@@ -73,7 +73,7 @@ namespace {
IndexCatalog* indexCatalog = collection->getIndexCatalog();
- if ( collection->ns().isOplog() && indexCatalog->numIndexesTotal() > 0 ) {
+ if ( collection->ns().isOplog() && indexCatalog->numIndexesTotal( txn ) > 0 ) {
warning() << ns << " had illegal indexes, removing";
indexCatalog->dropAllIndexes(txn, true);
continue;