summaryrefslogtreecommitdiff
path: root/src/mongo/db/service_context.cpp
diff options
context:
space:
mode:
authorAndy Schwerin <schwerin@mongodb.com>2016-05-27 10:18:32 -0400
committerAndy Schwerin <schwerin@mongodb.com>2016-05-27 11:45:14 -0400
commitafbdaca2a1353c7a5103dc315d7d635acd437243 (patch)
tree4504b8a37dac62889c0b4b7d7d4bb46a9811df29 /src/mongo/db/service_context.cpp
parenta47b34136b9952865e060a6126fffc2a8a252d6d (diff)
downloadmongo-afbdaca2a1353c7a5103dc315d7d635acd437243.tar.gz
SERVER-23905 Unify implementations of operation id assignment into ServiceContext.
Diffstat (limited to 'src/mongo/db/service_context.cpp')
-rw-r--r--src/mongo/db/service_context.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/service_context.cpp b/src/mongo/db/service_context.cpp
index 894d08c3fd9..d34920f6704 100644
--- a/src/mongo/db/service_context.cpp
+++ b/src/mongo/db/service_context.cpp
@@ -191,7 +191,7 @@ void ServiceContext::ClientDeleter::operator()(Client* client) const {
}
ServiceContext::UniqueOperationContext ServiceContext::makeOperationContext(Client* client) {
- auto opCtx = _newOpCtx(client);
+ auto opCtx = _newOpCtx(client, _nextOpId.fetchAndAdd(1));
auto observer = _clientObservers.begin();
try {
for (; observer != _clientObservers.cend(); ++observer) {