diff options
author | Dwight <dwight@10gen.com> | 2012-02-29 12:26:22 -0500 |
---|---|---|
committer | Dwight <dwight@10gen.com> | 2012-02-29 12:26:22 -0500 |
commit | f9c66d821ae74a6e3bac851c3b8e66836f4cc9a6 (patch) | |
tree | 1678241d80dda8ef918fe0f3c0a12ec3fd957947 /src/mongo/db/repl.cpp | |
parent | 42a00d27e33ac5b40b4f1e5aa456432f98b8a654 (diff) | |
download | mongo-f9c66d821ae74a6e3bac851c3b8e66836f4cc9a6.tar.gz |
SERVER-4328 add Command::localGlobally method
Diffstat (limited to 'src/mongo/db/repl.cpp')
-rw-r--r-- | src/mongo/db/repl.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/repl.cpp b/src/mongo/db/repl.cpp index 5490515af6b..2f5bfde7dbe 100644 --- a/src/mongo/db/repl.cpp +++ b/src/mongo/db/repl.cpp @@ -88,7 +88,8 @@ namespace mongo { return true; } virtual bool logTheOp() { return false; } - virtual LockType locktype() const { return GLOBAL; } + virtual bool lockGlobally() const { return true; } + virtual LockType locktype() const { return WRITE; } void help(stringstream&h) const { h << "resync (from scratch) an out of date replica slave.\nhttp://www.mongodb.org/display/DOCS/Master+Slave"; } CmdResync() : Command("resync") { } virtual bool run(const string& , BSONObj& cmdObj, int, string& errmsg, BSONObjBuilder& result, bool fromRepl) { |