summaryrefslogtreecommitdiff
path: root/src/mongo/s/s_only.cpp
diff options
context:
space:
mode:
authorAndy Schwerin <schwerin@mongodb.com>2015-06-04 18:32:23 -0400
committerAndy Schwerin <schwerin@mongodb.com>2015-06-05 14:21:57 -0400
commit6c2a61091396087f85c58bd6298519688a98e5d8 (patch)
tree201822868554014a882b85a86cb3e291ba6acf4a /src/mongo/s/s_only.cpp
parent54040db4fa000284cb1148b93e85f81c54ca12d6 (diff)
downloadmongo-6c2a61091396087f85c58bd6298519688a98e5d8.tar.gz
SERVER-18515 Put OperationContext into mongos client request path.
Diffstat (limited to 'src/mongo/s/s_only.cpp')
-rw-r--r--src/mongo/s/s_only.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/s/s_only.cpp b/src/mongo/s/s_only.cpp
index e11f06c617b..ebfaea9a276 100644
--- a/src/mongo/s/s_only.cpp
+++ b/src/mongo/s/s_only.cpp
@@ -168,8 +168,8 @@ namespace mongo {
return;
}
- OperationContext* noTxn = NULL; // mongos doesn't use transactions SERVER-13931
- execCommandClientBasic(noTxn, c, cc(), queryOptions, ns, jsobj, anObjBuilder);
+ auto txn = cc().makeOperationContext();
+ execCommandClientBasic(txn.get(), c, cc(), queryOptions, ns, jsobj, anObjBuilder);
}
} //namespace mongo