diff options
Diffstat (limited to 'src/mongo/s/transaction_router.cpp')
-rw-r--r-- | src/mongo/s/transaction_router.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/mongo/s/transaction_router.cpp b/src/mongo/s/transaction_router.cpp index 64742e972c7..32bdb81b368 100644 --- a/src/mongo/s/transaction_router.cpp +++ b/src/mongo/s/transaction_router.cpp @@ -1221,7 +1221,7 @@ BSONObj TransactionRouter::Router::abortTransaction(OperationContext* opCtx) { // Update stats on scope exit so the transaction is considered "active" while waiting on abort // responses. - auto updateStatsGuard = makeGuard([&] { _onExplicitAbort(opCtx); }); + ScopeGuard updateStatsGuard([&] { _onExplicitAbort(opCtx); }); // The router has yet to send any commands to a remote shard for this transaction. // Return the same error that would have been returned by a shard. @@ -1297,7 +1297,7 @@ void TransactionRouter::Router::implicitlyAbortTransaction(OperationContext* opC // Update stats on scope exit so the transaction is considered "active" while waiting on abort // responses. - auto updateStatsGuard = makeGuard([&] { _onImplicitAbort(opCtx, status); }); + ScopeGuard updateStatsGuard([&] { _onImplicitAbort(opCtx, status); }); if (o().participants.empty()) { return; |