Permalink
Browse files

emptycapped can be replicated

  • Loading branch information...
1 parent 09db1bc commit 97ab12742ac1779448d725521f805b8cb2f5f25f @erh erh committed Apr 24, 2012
Showing with 1 addition and 0 deletions.
  1. +1 −0 db/dbcommands.cpp
View
@@ -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() );

0 comments on commit 97ab127

Please sign in to comment.