summaryrefslogtreecommitdiff
path: root/src/mongo/db/dbhelpers.cpp
diff options
context:
space:
mode:
authorJames Wahlin <james.wahlin@10gen.com>2016-05-18 09:54:15 -0400
committerJames Wahlin <james.wahlin@10gen.com>2016-05-19 14:49:25 -0400
commit47b0f99814f2c78edd0ae9aebf76f2c4bfddcad6 (patch)
tree42210bdeec16f0839905d913eb59ed70bc9d58f6 /src/mongo/db/dbhelpers.cpp
parent5fb43bea8df4d62c97ad3c4777f773a7c3e032a3 (diff)
downloadmongo-47b0f99814f2c78edd0ae9aebf76f2c4bfddcad6.tar.gz
SERVER-23933 Remove OpDebug from ops/update.cpp::update()
Diffstat (limited to 'src/mongo/db/dbhelpers.cpp')
-rw-r--r--src/mongo/db/dbhelpers.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mongo/db/dbhelpers.cpp b/src/mongo/db/dbhelpers.cpp
index 8b2416da36b..e0a5b6ffcd3 100644
--- a/src/mongo/db/dbhelpers.cpp
+++ b/src/mongo/db/dbhelpers.cpp
@@ -243,7 +243,6 @@ void Helpers::upsert(OperationContext* txn, const string& ns, const BSONObj& o,
verify(e.type());
BSONObj id = e.wrap();
- OpDebug debug;
OldClientContext context(txn, ns);
const NamespaceString requestNs(ns);
@@ -256,11 +255,10 @@ void Helpers::upsert(OperationContext* txn, const string& ns, const BSONObj& o,
UpdateLifecycleImpl updateLifecycle(requestNs);
request.setLifecycle(&updateLifecycle);
- update(txn, context.db(), request, &debug);
+ update(txn, context.db(), request);
}
void Helpers::putSingleton(OperationContext* txn, const char* ns, BSONObj obj) {
- OpDebug debug;
OldClientContext context(txn, ns);
const NamespaceString requestNs(ns);
@@ -271,7 +269,7 @@ void Helpers::putSingleton(OperationContext* txn, const char* ns, BSONObj obj) {
UpdateLifecycleImpl updateLifecycle(requestNs);
request.setLifecycle(&updateLifecycle);
- update(txn, context.db(), request, &debug);
+ update(txn, context.db(), request);
CurOp::get(txn)->done();
}