diff options
author | Tyler Brock <tyler.brock@gmail.com> | 2014-06-30 15:08:13 -0400 |
---|---|---|
committer | Tyler Brock <tyler.brock@gmail.com> | 2014-06-30 15:08:13 -0400 |
commit | a353e16805d573af3d5ab4d32fbda87ec98d5c40 (patch) | |
tree | b380194417fd18d7ac24a138cf8a3f14f2535e0c /src/mongo/db/dbhelpers.cpp | |
parent | e9a6e9365cf4d6d13b4a3f94aec1f433dab9f704 (diff) | |
download | mongo-a353e16805d573af3d5ab4d32fbda87ec98d5c40.tar.gz |
Revert "SERVER-13961 Add OperationContext argument to Client::Context"
This reverts commit e1f5a39b1b625d04752be13f39c774e579b64cd8.
Diffstat (limited to 'src/mongo/db/dbhelpers.cpp')
-rw-r--r-- | src/mongo/db/dbhelpers.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/mongo/db/dbhelpers.cpp b/src/mongo/db/dbhelpers.cpp index 0de77233f93..abbeea15a86 100644 --- a/src/mongo/db/dbhelpers.cpp +++ b/src/mongo/db/dbhelpers.cpp @@ -181,7 +181,7 @@ namespace mongo { Returns: true if object exists. */ bool Helpers::getSingleton(OperationContext* txn, const char *ns, BSONObj& result) { - Client::Context context(txn, ns); + Client::Context context(ns); auto_ptr<Runner> runner(InternalPlanner::collectionScan(ns, context.db()->getCollection(txn, ns))); @@ -191,7 +191,7 @@ namespace mongo { } bool Helpers::getLast(OperationContext* txn, const char *ns, BSONObj& result) { - Client::Context ctx(txn, ns); + Client::Context ctx(ns); Collection* coll = ctx.db()->getCollection( txn, ns ); auto_ptr<Runner> runner(InternalPlanner::collectionScan(ns, coll, @@ -209,7 +209,7 @@ namespace mongo { BSONObj id = e.wrap(); OpDebug debug; - Client::Context context(txn, ns); + Client::Context context(ns); const NamespaceString requestNs(ns); UpdateRequest request(requestNs); @@ -227,7 +227,7 @@ namespace mongo { void Helpers::putSingleton(OperationContext* txn, const char *ns, BSONObj obj) { OpDebug debug; - Client::Context context(txn, ns); + Client::Context context(ns); const NamespaceString requestNs(ns); UpdateRequest request(requestNs); @@ -245,7 +245,7 @@ namespace mongo { void Helpers::putSingletonGod(OperationContext* txn, const char *ns, BSONObj obj, bool logTheOp) { OpDebug debug; - Client::Context context(txn, ns); + Client::Context context(ns); const NamespaceString requestNs(ns); UpdateRequest request(requestNs); @@ -546,7 +546,7 @@ namespace mongo { void Helpers::emptyCollection(OperationContext* txn, const char *ns) { - Client::Context context(txn, ns); + Client::Context context(ns); deleteObjects(txn, context.db(), ns, BSONObj(), false); } |