diff options
author | Eliot Horowitz <eliot@10gen.com> | 2010-02-26 14:38:51 -0500 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2010-02-26 14:38:51 -0500 |
commit | a347ce9b85e29bfda30ec22ec0e3f1c5fa08ed52 (patch) | |
tree | 528b460f346352daa5be3678a55d499c87697a9b /db/dbeval.cpp | |
parent | 53ada277438e77fe14d9802928f1e094538ef623 (diff) | |
download | mongo-a347ce9b85e29bfda30ec22ec0e3f1c5fa08ed52.tar.gz |
change Command locking config
Diffstat (limited to 'db/dbeval.cpp')
-rw-r--r-- | db/dbeval.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/db/dbeval.cpp b/db/dbeval.cpp index 10f7c236fb9..a3be894be4a 100644 --- a/db/dbeval.cpp +++ b/db/dbeval.cpp @@ -116,6 +116,7 @@ namespace mongo { virtual bool requiresAuth() { return false; } + virtual LockType locktype(){ return WRITE; } CmdEval() : Command("$eval") { } bool run(const char *ns, BSONObj& cmdObj, string& errmsg, BSONObjBuilder& result, bool fromRepl) { AuthenticationInfo *ai = cc().getAuthenticationInfo(); |