summaryrefslogtreecommitdiff
path: root/src/mongo/db/dbhelpers.cpp
diff options
context:
space:
mode:
authorMathias Stearn <mathias@10gen.com>2016-04-07 18:24:19 -0400
committerMathias Stearn <mathias@10gen.com>2016-04-21 18:38:56 -0400
commit98ba7f26e13edbd221afca2d119e844896397752 (patch)
tree40e36ea7e2c78a10afb038c8629b5c1c29c28fe5 /src/mongo/db/dbhelpers.cpp
parentb95db102cadf57661e53ae6aa81c4ab9a1254a16 (diff)
downloadmongo-98ba7f26e13edbd221afca2d119e844896397752.tar.gz
SERVER-23128 Remove sharding logic from UpdateLifecycleImpl
It didn't actually do anything
Diffstat (limited to 'src/mongo/db/dbhelpers.cpp')
-rw-r--r--src/mongo/db/dbhelpers.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/db/dbhelpers.cpp b/src/mongo/db/dbhelpers.cpp
index b266fa268e9..623a06b9098 100644
--- a/src/mongo/db/dbhelpers.cpp
+++ b/src/mongo/db/dbhelpers.cpp
@@ -250,7 +250,7 @@ void Helpers::upsert(OperationContext* txn, const string& ns, const BSONObj& o,
request.setUpdates(o);
request.setUpsert();
request.setFromMigration(fromMigrate);
- UpdateLifecycleImpl updateLifecycle(true, requestNs);
+ UpdateLifecycleImpl updateLifecycle(requestNs);
request.setLifecycle(&updateLifecycle);
update(txn, context.db(), request, &debug);
@@ -265,7 +265,7 @@ void Helpers::putSingleton(OperationContext* txn, const char* ns, BSONObj obj) {
request.setUpdates(obj);
request.setUpsert();
- UpdateLifecycleImpl updateLifecycle(true, requestNs);
+ UpdateLifecycleImpl updateLifecycle(requestNs);
request.setLifecycle(&updateLifecycle);
update(txn, context.db(), request, &debug);