summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBenety Goh <benety@mongodb.com>2021-07-30 06:46:09 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2021-07-30 11:13:40 +0000
commita05959f3e16b909dd76f7935b7fb529d02942dff (patch)
tree13a610bb497006ec8fcba75f6a62a8878a221817 /src
parent49f9319d0ee50502259b61dfef2e2b71bf86948a (diff)
downloadmongo-a05959f3e16b909dd76f7935b7fb529d02942dff.tar.gz
SERVER-58944 add loop progress info to 'Index build: starting' log message
Diffstat (limited to 'src')
-rw-r--r--src/mongo/db/catalog/multi_index_block.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/mongo/db/catalog/multi_index_block.cpp b/src/mongo/db/catalog/multi_index_block.cpp
index 802b64c71bf..8b927e844b2 100644
--- a/src/mongo/db/catalog/multi_index_block.cpp
+++ b/src/mongo/db/catalog/multi_index_block.cpp
@@ -307,6 +307,8 @@ StatusWith<std::vector<BSONObj>> MultiIndexBlock::init(
"collectionUUID"_attr = _collectionUUID,
logAttrs(collection->ns()),
"properties"_attr = *descriptor,
+ "specIndex"_attr = i,
+ "numSpecs"_attr = indexSpecs.size(),
"method"_attr = _method,
"maxTemporaryMemoryUsageMB"_attr =
eachIndexBuildMaxMemoryUsageBytes / 1024 / 1024);