summaryrefslogtreecommitdiff
path: root/src/mongo/db/stats
diff options
context:
space:
mode:
authorShin Yee Tan <shinyee.tan@mongodb.com>2022-10-18 14:39:47 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-10-18 16:48:55 +0000
commitd03513d69058626ed48812e41bf444c50655e6fa (patch)
treee1178b97dc2f9460ae4b42e18106665f7ba7091d /src/mongo/db/stats
parent8981e5b8f9be7c719d8264dede6694cde0258a5d (diff)
downloadmongo-d03513d69058626ed48812e41bf444c50655e6fa.tar.gz
SERVER-70556 Clean up index catalog counter methods
Diffstat (limited to 'src/mongo/db/stats')
-rw-r--r--src/mongo/db/stats/storage_stats.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/stats/storage_stats.cpp b/src/mongo/db/stats/storage_stats.cpp
index f092a96738f..f93838ae492 100644
--- a/src/mongo/db/stats/storage_stats.cpp
+++ b/src/mongo/db/stats/storage_stats.cpp
@@ -162,7 +162,7 @@ Status appendCollectionStorageStats(OperationContext* opCtx,
BSONObjBuilder indexDetails;
std::vector<std::string> indexBuilds;
- auto numIndexes = indexCatalog->numIndexesTotal(opCtx);
+ auto numIndexes = indexCatalog->numIndexesTotal();
if (collection->isClustered() && !collection->ns().isTimeseriesBucketsCollection()) {
// There is an implicit 'clustered' index on a clustered collection. Increment the total
// index count to reflect that.