summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/dbcommands.cpp
diff options
context:
space:
mode:
authorAmirsaman Memaripour <amirsaman.memaripour@mongodb.com>2020-12-09 19:35:14 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2020-12-09 22:18:59 +0000
commitc8520d84cc7356d1a30858092ee79de4dd6dc163 (patch)
tree84217bf67d7fa39a030866c9c32e08118158431c /src/mongo/db/commands/dbcommands.cpp
parentc7692fcb55476c5b7d1f17f10662935255637012 (diff)
downloadmongo-c8520d84cc7356d1a30858092ee79de4dd6dc163.tar.gz
SERVER-53305 Control AsyncRequestExecutor via ConstructorDestructorActions
Diffstat (limited to 'src/mongo/db/commands/dbcommands.cpp')
-rw-r--r--src/mongo/db/commands/dbcommands.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mongo/db/commands/dbcommands.cpp b/src/mongo/db/commands/dbcommands.cpp
index 45374194a62..16db3845ebb 100644
--- a/src/mongo/db/commands/dbcommands.cpp
+++ b/src/mongo/db/commands/dbcommands.cpp
@@ -867,6 +867,11 @@ BuildInfoExecutor* BuildInfoExecutor::get(ServiceContext* svc) {
return const_cast<BuildInfoExecutor*>(&getBuildInfoExecutor(svc));
}
+const auto buildInfoExecutorRegisterer = ServiceContext::ConstructorActionRegisterer{
+ "BuildInfoExecutor",
+ [](ServiceContext* ctx) { getBuildInfoExecutor(ctx).start(); },
+ [](ServiceContext* ctx) { getBuildInfoExecutor(ctx).stop(); }};
+
class CmdBuildInfo : public BasicCommand {
public:
CmdBuildInfo() : BasicCommand("buildInfo", "buildinfo") {}