summaryrefslogtreecommitdiff
path: root/src/mongo/db/s
diff options
context:
space:
mode:
authorKaloian Manassiev <kaloian.manassiev@mongodb.com>2019-04-02 17:16:03 -0400
committerKaloian Manassiev <kaloian.manassiev@mongodb.com>2019-04-03 10:26:36 -0400
commit8804404d94ccada2b1060b13f1ca7b9c24692178 (patch)
treec45462b0148d11b66a1f956f58497204db1385f4 /src/mongo/db/s
parentd47bbc343af0b5bbde7b810f63e6b3404ea9e4d6 (diff)
downloadmongo-8804404d94ccada2b1060b13f1ca7b9c24692178.tar.gz
SERVER-39350 Make `opMsgRequestFromAnyProtocol` return owned request messages
Diffstat (limited to 'src/mongo/db/s')
-rw-r--r--src/mongo/db/s/transaction_coordinator_futures_util.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mongo/db/s/transaction_coordinator_futures_util.h b/src/mongo/db/s/transaction_coordinator_futures_util.h
index c7361906c2c..1b403d4704d 100644
--- a/src/mongo/db/s/transaction_coordinator_futures_util.h
+++ b/src/mongo/db/s/transaction_coordinator_futures_util.h
@@ -89,7 +89,7 @@ public:
_activeOpContexts.begin(), tc->makeOperationContext());
ul.unlock();
- auto scopedGuard = makeGuard([&] {
+ ON_BLOCK_EXIT([&] {
ul.lock();
_activeOpContexts.erase(uniqueOpCtxIter);
// There is no need to call _notifyAllTasksComplete here, because we