summaryrefslogtreecommitdiff
path: root/src/mongo/db/operation_context.cpp
diff options
context:
space:
mode:
authorSiyuan Zhou <siyuan.zhou@mongodb.com>2019-04-17 20:01:44 -0400
committerSiyuan Zhou <siyuan.zhou@mongodb.com>2019-05-14 15:55:56 -0400
commit21a071a9ea515650baccd460001e5461e6e79cf3 (patch)
tree31f490cb1bef6de2aced1b7763a95fd5e0f7f474 /src/mongo/db/operation_context.cpp
parentad9267a722e21268d1005c1428ccad85d5a98946 (diff)
downloadmongo-21a071a9ea515650baccd460001e5461e6e79cf3.tar.gz
SERVER-39794 Abort in-progress transactions on stepup
Diffstat (limited to 'src/mongo/db/operation_context.cpp')
-rw-r--r--src/mongo/db/operation_context.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/mongo/db/operation_context.cpp b/src/mongo/db/operation_context.cpp
index 2e9e4c0a00e..c2e6e59767b 100644
--- a/src/mongo/db/operation_context.cpp
+++ b/src/mongo/db/operation_context.cpp
@@ -351,13 +351,11 @@ void OperationContext::setIsExecutingShutdown() {
}
void OperationContext::setLogicalSessionId(LogicalSessionId lsid) {
- invariant(!_lsid);
_lsid = std::move(lsid);
}
void OperationContext::setTxnNumber(TxnNumber txnNumber) {
invariant(_lsid);
- invariant(!_txnNumber);
_txnNumber = txnNumber;
}