diff options
author | Phillip Quiza <pquiza@gmail.com> | 2013-08-28 11:45:25 -0400 |
---|---|---|
committer | Matt Kangas <matt.kangas@10gen.com> | 2013-08-28 14:11:13 -0400 |
commit | 4a0d9d56bf56715e6488c886226caa258c500e04 (patch) | |
tree | 66e21ed4806e773931ad7ff48cb43f617c8eb6e0 | |
parent | 719771abe2217e53df3c3640501b4b460d584995 (diff) | |
download | mongo-4a0d9d56bf56715e6488c886226caa258c500e04.tar.gz |
SERVER-9352: log all index properties on index creation
Signed-off-by: Matt Kangas <matt.kangas@10gen.com>
-rw-r--r-- | src/mongo/db/index_update.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/mongo/db/index_update.cpp b/src/mongo/db/index_update.cpp index 55bd55fa345..b0a6e049ad0 100644 --- a/src/mongo/db/index_update.cpp +++ b/src/mongo/db/index_update.cpp @@ -263,15 +263,16 @@ namespace mongo { IndexDetails& idx, bool mayInterrupt) { - bool background = idx.info.obj()["background"].trueValue(); + BSONObj idxInfo = idx.info.obj(); + + MONGO_TLOG(0) << "build index on: " << ns << " properties: " << idxInfo.jsonString() << endl; - MONGO_TLOG(0) << "build index " << ns << ' ' << idx.keyPattern() << ( background ? " background" : "" ) << endl; Timer t; unsigned long long n; verify( Lock::isWriteLocked(ns) ); - if( inDBRepair || !background ) { + if( inDBRepair || !idxInfo["background"].trueValue() ) { int idxNo = IndexBuildsInProgress::get(ns.c_str(), idx.info.obj()["name"].valuestr()); n = BtreeBasedBuilder::fastBuildIndex(ns.c_str(), d, idx, mayInterrupt, idxNo); verify( !idx.head.isNull() ); |