diff options
Diffstat (limited to 'src/mongo/db/dbeval.cpp')
-rw-r--r-- | src/mongo/db/dbeval.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mongo/db/dbeval.cpp b/src/mongo/db/dbeval.cpp index 72d7ebcd977..b873b64b760 100644 --- a/src/mongo/db/dbeval.cpp +++ b/src/mongo/db/dbeval.cpp @@ -32,16 +32,16 @@ #include "mongo/platform/basic.h" -#include <time.h> - #include "mongo/bson/util/builder.h" #include "mongo/db/auth/authorization_manager.h" #include "mongo/db/auth/authorization_manager_global.h" #include "mongo/db/auth/authorization_session.h" +#include "mongo/db/client.h" #include "mongo/db/commands.h" #include "mongo/db/introspect.h" #include "mongo/db/jsobj.h" #include "mongo/db/json.h" +#include "mongo/db/operation_context.h" #include "mongo/scripting/engine.h" #include "mongo/util/log.h" @@ -153,6 +153,7 @@ namespace mongo { ScopedTransaction transaction(txn, MODE_X); Lock::GlobalWrite lk(txn->lockState()); + // No WriteUnitOfWork necessary, as dbEval will create its own, see "nolock" case above Client::Context ctx(txn, dbname ); |