diff options
author | Dwight <dmerriman@gmail.com> | 2008-12-05 10:09:16 -0500 |
---|---|---|
committer | Dwight <dmerriman@gmail.com> | 2008-12-05 10:09:16 -0500 |
commit | 1a95c75d0ffa5dfb865ac40f8fafecd2732bc4ca (patch) | |
tree | ab882e4b052a1acde9528e52c275209db013a04f /db/commands.h | |
parent | 9fadd09ac6356a6fdac62eb638ee7b92afb8e7c5 (diff) | |
download | mongo-1a95c75d0ffa5dfb865ac40f8fafecd2732bc4ca.tar.gz |
don't log to our oplog operations we are replicating from elsewhere
Diffstat (limited to 'db/commands.h')
-rw-r--r-- | db/commands.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/db/commands.h b/db/commands.h index 88bf552fb48..761af145721 100644 --- a/db/commands.h +++ b/db/commands.h @@ -28,9 +28,13 @@ public: /* run the given command implement this... + + fromRepl - command is being invoked as part of replication syncing. In this situation you + normally do not want to log the command to the local oplog. + return value is true if succeeded. if false, set errmsg text. */ - virtual bool run(const char *ns, BSONObj& cmdObj, string& errmsg, BSONObjBuilder& result) = 0; + virtual bool run(const char *ns, BSONObj& cmdObj, string& errmsg, BSONObjBuilder& result, bool fromRepl) = 0; /* return true if only the admin ns has privileges to run this command. */ virtual bool adminOnly() { return false; } |