diff options
author | Billy Donahue <billy.donahue@mongodb.com> | 2018-05-14 16:34:53 -0400 |
---|---|---|
committer | Billy Donahue <billy.donahue@mongodb.com> | 2018-05-16 15:12:06 -0400 |
commit | 373aae274364751eec424a3665c50b53b06f6746 (patch) | |
tree | 131d1bed40e861b7b1f84b87f3af9dbf6c10a3f3 /src/mongo/db/commands/hashcmd.cpp | |
parent | def040cc178a7726559e7796557c98384119b16e (diff) | |
download | mongo-373aae274364751eec424a3665c50b53b06f6746.tar.gz |
SERVER-34653 MONGO_REGISTER_TEST_COMMAND
Diffstat (limited to 'src/mongo/db/commands/hashcmd.cpp')
-rw-r--r-- | src/mongo/db/commands/hashcmd.cpp | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/mongo/db/commands/hashcmd.cpp b/src/mongo/db/commands/hashcmd.cpp index 0eb54cd3ec2..1bf80afabe8 100644 --- a/src/mongo/db/commands/hashcmd.cpp +++ b/src/mongo/db/commands/hashcmd.cpp @@ -101,11 +101,5 @@ public: return true; } }; -MONGO_INITIALIZER(RegisterHashEltCmd)(InitializerContext* context) { - if (getTestCommandsEnabled()) { - // Leaked intentionally: a Command registers itself when constructed. - new CmdHashElt(); - } - return Status::OK(); -} +MONGO_REGISTER_TEST_COMMAND(CmdHashElt); } |