summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands.h
diff options
context:
space:
mode:
authorAndrew Morrow <acm@mongodb.com>2015-10-18 12:09:57 -0400
committerAndrew Morrow <acm@mongodb.com>2015-10-19 15:21:58 -0400
commit0bd1fb89f07ae4c39d9ca50d0491fb2afe643a46 (patch)
tree51dd6c23b8e74a4c72c62f53e358f1e250df3708 /src/mongo/db/commands.h
parent16b1fae1bb0b31303b987a91e61668ac4fa7b513 (diff)
downloadmongo-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.h6
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