diff options
Diffstat (limited to 'src/mongo/db/index_builder.cpp')
-rw-r--r-- | src/mongo/db/index_builder.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/db/index_builder.cpp b/src/mongo/db/index_builder.cpp index cb4da4b988f..af13ee8acd9 100644 --- a/src/mongo/db/index_builder.cpp +++ b/src/mongo/db/index_builder.cpp @@ -75,6 +75,10 @@ namespace mongo { c = db->getOrCreateCollection( ns ); verify(c); } + + // Show which index we're building in the curop display. + context.getClient()->curop()->setQuery(_index); + Status status = c->getIndexCatalog()->createIndex( _index, true, IndexCatalog::SHUTDOWN_LEAVE_DIRTY ); |