diff options
author | Andrew Morrow <acm@mongodb.com> | 2015-10-18 12:09:57 -0400 |
---|---|---|
committer | Andrew Morrow <acm@mongodb.com> | 2015-10-19 15:21:58 -0400 |
commit | 0bd1fb89f07ae4c39d9ca50d0491fb2afe643a46 (patch) | |
tree | 51dd6c23b8e74a4c72c62f53e358f1e250df3708 /src/mongo/db/commands.h | |
parent | 16b1fae1bb0b31303b987a91e61668ac4fa7b513 (diff) | |
download | mongo-0bd1fb89f07ae4c39d9ca50d0491fb2afe643a46.tar.gz |
SERVER-20995 Linking to command does not need command implementations
Diffstat (limited to 'src/mongo/db/commands.h')
-rw-r--r-- | src/mongo/db/commands.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/mongo/db/commands.h b/src/mongo/db/commands.h index 760854f7d66..f2daf4fe5b4 100644 --- a/src/mongo/db/commands.h +++ b/src/mongo/db/commands.h @@ -79,6 +79,10 @@ protected: public: typedef StringMap<Command*> CommandMap; + // NOTE: Do not remove this declaration, or relocate it in this class. We + // are using this method to control where the vtable is emitted. + virtual ~Command(); + // Return the namespace for the command. If the first field in 'cmdObj' is of type // mongo::String, then that field is interpreted as the collection name, and is // appended to 'dbname' after a '.' character. If the first field is not of type @@ -250,8 +254,6 @@ public: */ Command(StringData _name, bool webUI = false, StringData oldName = StringData()); - virtual ~Command() {} - protected: /** * Appends to "*out" the privileges required to run this command on database "dbname" with |