summaryrefslogtreecommitdiff
path: root/src/mongo/db
diff options
context:
space:
mode:
authorPhillip Quiza <pquiza@gmail.com>2013-08-28 11:45:25 -0400
committerMatt Kangas <matt.kangas@10gen.com>2013-08-28 14:11:13 -0400
commit4a0d9d56bf56715e6488c886226caa258c500e04 (patch)
tree66e21ed4806e773931ad7ff48cb43f617c8eb6e0 /src/mongo/db
parent719771abe2217e53df3c3640501b4b460d584995 (diff)
downloadmongo-4a0d9d56bf56715e6488c886226caa258c500e04.tar.gz
SERVER-9352: log all index properties on index creation
Signed-off-by: Matt Kangas <matt.kangas@10gen.com>
Diffstat (limited to 'src/mongo/db')
-rw-r--r--src/mongo/db/index_update.cpp7
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() );