diff options
Diffstat (limited to 'src/mongo/scripting/mozjs/session.cpp')
-rw-r--r-- | src/mongo/scripting/mozjs/session.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/mongo/scripting/mozjs/session.cpp b/src/mongo/scripting/mozjs/session.cpp index d1617892a4c..7e785888a52 100644 --- a/src/mongo/scripting/mozjs/session.cpp +++ b/src/mongo/scripting/mozjs/session.cpp @@ -122,9 +122,7 @@ void endSession(SessionHolder* holder) { if (holder->txnState == SessionHolder::TransactionState::kActive) { holder->txnState = SessionHolder::TransactionState::kAborted; BSONObj abortObj = BSON("abortTransaction" << 1 << "lsid" << holder->lsid << "txnNumber" - << holder->txnNumber - << "autocommit" - << false); + << holder->txnNumber << "autocommit" << false); MONGO_COMPILER_VARIABLE_UNUSED auto ignored = holder->client->runCommand("admin", abortObj, out); |