diff options
author | Kristina <kristina@10gen.com> | 2013-02-08 16:07:23 -0500 |
---|---|---|
committer | Kristina <kristina@10gen.com> | 2013-02-08 17:06:24 -0500 |
commit | 12b4c4a7c2540f0102637fd53bdceff77e9debdf (patch) | |
tree | 0cefe0d83b738330dc394a038c4276125365a815 /src/mongo/db/index_rebuilder.cpp | |
parent | 288df8991ba54a02e034b7a45068acf1972071c9 (diff) | |
download | mongo-12b4c4a7c2540f0102637fd53bdceff77e9debdf.tar.gz |
SERVER-8344 Prevent query state errors on index rebuild
Diffstat (limited to 'src/mongo/db/index_rebuilder.cpp')
-rw-r--r-- | src/mongo/db/index_rebuilder.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/index_rebuilder.cpp b/src/mongo/db/index_rebuilder.cpp index d02d2ad90fd..de515125f5b 100644 --- a/src/mongo/db/index_rebuilder.cpp +++ b/src/mongo/db/index_rebuilder.cpp @@ -49,11 +49,11 @@ namespace mongo { Record::MemoryTrackingEnabled = false; Client::initThread(name().c_str()); + Client::GodScope gs; std::vector<std::string> dbNames; { Lock::GlobalWrite lk; - Client::GodScope gs; getDatabaseNames(dbNames); } |