diff options
author | William Schultz <william.schultz@mongodb.com> | 2018-10-06 10:43:50 -0400 |
---|---|---|
committer | William Schultz <william.schultz@mongodb.com> | 2018-10-06 10:43:50 -0400 |
commit | 07066a49b935a538ed54716fdd9a98d40c31fba4 (patch) | |
tree | ff67e180cdab1492754119edbd22a333e6898604 /jstests | |
parent | f9600749453db5dec58bd1bbfd967e16b1578a24 (diff) | |
download | mongo-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.js | 2 |
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; |