summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2012-04-24 19:19:11 -0400
committerEliot Horowitz <eliot@10gen.com>2012-04-24 19:19:37 -0400
commit97ab12742ac1779448d725521f805b8cb2f5f25f (patch)
treedc7ca8d2081d9ad598435a8c2e7e9d6444b001e6
parent09db1bc1bedf7ece0a0e12236259ead905eee5de (diff)
downloadmongo-97ab12742ac1779448d725521f805b8cb2f5f25f.tar.gz
emptycapped can be replicated
-rw-r--r--db/dbcommands.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/db/dbcommands.cpp b/db/dbcommands.cpp
index fc6327cdfa4..fb6a902997c 100644
--- a/db/dbcommands.cpp
+++ b/db/dbcommands.cpp
@@ -1760,6 +1760,7 @@ namespace mongo {
virtual bool slaveOk() const { return false; }
virtual LockType locktype() const { return WRITE; }
virtual bool requiresAuth() { return true; }
+ virtual bool logTheOp() { return true; }
virtual bool run(const string& dbname , BSONObj& cmdObj, int, string& errmsg, BSONObjBuilder& result, bool) {
string coll = cmdObj[ "emptycapped" ].valuestrsafe();
uassert( 13428, "emptycapped must specify a collection", !coll.empty() );