summaryrefslogtreecommitdiff
path: root/src/mongo/db/commands/compact.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/mongo/db/commands/compact.cpp')
-rw-r--r--src/mongo/db/commands/compact.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/commands/compact.cpp b/src/mongo/db/commands/compact.cpp
index e7c914ef0c4..492b9c46184 100644
--- a/src/mongo/db/commands/compact.cpp
+++ b/src/mongo/db/commands/compact.cpp
@@ -53,7 +53,7 @@ namespace mongo {
using std::string;
using std::stringstream;
-class CompactCmd : public Command {
+class CompactCmd : public BasicCommand {
public:
virtual bool supportsWriteConcern(const BSONObj& cmd) const override {
return false;
@@ -84,7 +84,7 @@ public:
" validate - check records are noncorrupt before adding to newly compacting "
"extents. slower but safer (defaults to true in this version)\n";
}
- CompactCmd() : Command("compact") {}
+ CompactCmd() : BasicCommand("compact") {}
virtual bool run(OperationContext* opCtx,
const string& db,