summaryrefslogtreecommitdiff
path: root/src/mongo/db/repl.cpp
diff options
context:
space:
mode:
authorDwight <dwight@10gen.com>2012-02-29 12:26:22 -0500
committerDwight <dwight@10gen.com>2012-02-29 12:26:22 -0500
commitf9c66d821ae74a6e3bac851c3b8e66836f4cc9a6 (patch)
tree1678241d80dda8ef918fe0f3c0a12ec3fd957947 /src/mongo/db/repl.cpp
parent42a00d27e33ac5b40b4f1e5aa456432f98b8a654 (diff)
downloadmongo-f9c66d821ae74a6e3bac851c3b8e66836f4cc9a6.tar.gz
SERVER-4328 add Command::localGlobally method
Diffstat (limited to 'src/mongo/db/repl.cpp')
-rw-r--r--src/mongo/db/repl.cpp3
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) {