summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/create_indexes.cpp
diff options
context:
space:
mode:
authorLouis Williams <louis.williams@mongodb.com>2020-09-15 17:27:47 -0400
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-09-15 23:01:41 +0000
commitf9f7f4832d8e94c233e7281790cbeb9b70129382 (patch)
tree69a6c19a4db4a0dd5305a3b02935ab39760a2152 /src/mongo/db/commands/create_indexes.cpp
parent3ea1720a10ebac984a3d117cab721058bb7f170e (diff)
downloadmongo-f9f7f4832d8e94c233e7281790cbeb9b70129382.tar.gz
SERVER-50863 Collect resource consumption metrics for specified commands
Diffstat (limited to 'src/mongo/db/commands/create_indexes.cpp')
-rw-r--r--src/mongo/db/commands/create_indexes.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mongo/db/commands/create_indexes.cpp b/src/mongo/db/commands/create_indexes.cpp
index 0f3b83667cd..c3bf793ca6b 100644
--- a/src/mongo/db/commands/create_indexes.cpp
+++ b/src/mongo/db/commands/create_indexes.cpp
@@ -737,6 +737,10 @@ public:
return true;
}
+ bool collectsResourceConsumptionMetrics() const override {
+ return true;
+ }
+
AllowedOnSecondary secondaryAllowed(ServiceContext*) const override {
return AllowedOnSecondary::kNever;
}