summaryrefslogtreecommitdiff
path: root/src/mongo/db/dbeval.cpp
diff options
context:
space:
mode:
authorGeert Bosch <geert.bosch@mongodb.com>2014-06-30 16:12:03 -0400
committerGeert Bosch <geert.bosch@mongodb.com>2014-07-01 10:27:12 -0400
commitef3e85d4f5b67c039668cef805459e29711aa636 (patch)
treebced88a603d39d4d6cb3dc174c2ad19f8ad7dfaf /src/mongo/db/dbeval.cpp
parentf64357e485c8d46bd6fd393f7416df6117672de1 (diff)
downloadmongo-ef3e85d4f5b67c039668cef805459e29711aa636.tar.gz
SERVER-14085: Start using WriteUnitOfWork
Diffstat (limited to 'src/mongo/db/dbeval.cpp')
-rw-r--r--src/mongo/db/dbeval.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/mongo/db/dbeval.cpp b/src/mongo/db/dbeval.cpp
index e5bd01890e7..41069802f1d 100644
--- a/src/mongo/db/dbeval.cpp
+++ b/src/mongo/db/dbeval.cpp
@@ -1,4 +1,4 @@
-// commands.cpp
+// dbeval.cpp
/**
* Copyright (C) 2012 10gen Inc.
@@ -143,6 +143,7 @@ namespace mongo {
}
Lock::GlobalWrite lk(txn->lockState());
+ // No WriteUnitOfWork necessary, as dbEval will create its own, see "nolock" case above
Client::Context ctx(txn, dbname );
return dbEval(dbname, cmdObj, result, errmsg);