summaryrefslogtreecommitdiff
path: root/src/mongo/db/index_rebuilder.cpp
diff options
context:
space:
mode:
authorKaloian Manassiev <kaloian.manassiev@mongodb.com>2014-12-09 13:45:33 -0500
committerKaloian Manassiev <kaloian.manassiev@mongodb.com>2014-12-10 16:34:53 -0500
commit314f6a94d1c4993da47b00427ad2e9694653dc18 (patch)
tree6b18e6247b823a81a683f57523c5296b48ebdf6c /src/mongo/db/index_rebuilder.cpp
parentbf834456c3e5a02fbe6fed340563a3c5fa548e4c (diff)
downloadmongo-314f6a94d1c4993da47b00427ad2e9694653dc18.tar.gz
SERVER-16429 Add ScopedTransactions to places which were missing it
Diffstat (limited to 'src/mongo/db/index_rebuilder.cpp')
-rw-r--r--src/mongo/db/index_rebuilder.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mongo/db/index_rebuilder.cpp b/src/mongo/db/index_rebuilder.cpp
index b23270e3afe..dcf311ded1b 100644
--- a/src/mongo/db/index_rebuilder.cpp
+++ b/src/mongo/db/index_rebuilder.cpp
@@ -156,6 +156,8 @@ namespace {
for (std::vector<std::string>::const_iterator dbName = dbNames.begin();
dbName < dbNames.end();
++dbName) {
+
+ ScopedTransaction scopedXact(txn, MODE_IS);
AutoGetDb autoDb(txn, *dbName, MODE_S);
Database* db = autoDb.getDb();