summaryrefslogtreecommitdiff
path: root/src/mongo/db/index_builder.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/index_builder.cpp')
-rw-r--r--src/mongo/db/index_builder.cpp4
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 );