summaryrefslogtreecommitdiff
path: root/jstests
diff options
context:
space:
mode:
authorWilliam Schultz <william.schultz@mongodb.com>2018-10-06 10:43:50 -0400
committerWilliam Schultz <william.schultz@mongodb.com>2018-10-06 10:43:50 -0400
commit07066a49b935a538ed54716fdd9a98d40c31fba4 (patch)
treeff67e180cdab1492754119edbd22a333e6898604 /jstests
parentf9600749453db5dec58bd1bbfd967e16b1578a24 (diff)
downloadmongo-07066a49b935a538ed54716fdd9a98d40c31fba4.tar.gz
SERVER-37497 Clearly log sessionID override in multi_statement_transaction_all_commands_same_session.js
Diffstat (limited to 'jstests')
-rw-r--r--jstests/concurrency/fsm_workloads/multi_statement_transaction_all_commands_same_session.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/jstests/concurrency/fsm_workloads/multi_statement_transaction_all_commands_same_session.js b/jstests/concurrency/fsm_workloads/multi_statement_transaction_all_commands_same_session.js
index e297343bb70..ee0caa06f69 100644
--- a/jstests/concurrency/fsm_workloads/multi_statement_transaction_all_commands_same_session.js
+++ b/jstests/concurrency/fsm_workloads/multi_statement_transaction_all_commands_same_session.js
@@ -23,6 +23,8 @@ var $config = extendWorkload($config, function($config, $super) {
this.session = db.getMongo().startSession({causalConsistency: true});
// Force the session to use `lsid` for its session id. This way all threads will use
// the same session.
+ const oldId = this.session._serverSession.handle.getId();
+ print("Overriding sessionID " + tojson(oldId) + " with " + tojson(lsid) + " for test.");
this.session._serverSession.handle.getId = () => lsid;
this.txnNumber = -1;