summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJason Zhang <jason.zhang@mongodb.com>2022-07-23 16:20:54 +0000
committerEvergreen Agent <no-reply@evergreen.mongodb.com>2022-08-03 22:15:00 +0000
commit0465653d3fa508be464d7d4f9ddab6982d423e26 (patch)
tree6e05c91cba20f08997fb7890ebddde65b92e7790
parent14c07b53186ee88497abd0ba492d2d9157891718 (diff)
downloadmongo-0465653d3fa508be464d7d4f9ddab6982d423e26.tar.gz
SERVER-68184 Use Number instead of NumberLong when indexing in checkWritesOfCommittedTxns
(cherry picked from commit 4e2b9c4b8f62f81145483db734b778115a4784e1)
-rw-r--r--jstests/concurrency/fsm_workloads/multi_statement_transaction_atomicity_isolation.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/jstests/concurrency/fsm_workloads/multi_statement_transaction_atomicity_isolation.js b/jstests/concurrency/fsm_workloads/multi_statement_transaction_atomicity_isolation.js
index bbf3ef53797..48e2d700504 100644
--- a/jstests/concurrency/fsm_workloads/multi_statement_transaction_atomicity_isolation.js
+++ b/jstests/concurrency/fsm_workloads/multi_statement_transaction_atomicity_isolation.js
@@ -112,7 +112,7 @@ var $config = (function() {
for (let i = 0; i < doc.order.length; i++) {
// Pull out only those docIds and txnNums that were updated by this thread.
if (doc.order[i].tid === data.tid) {
- const txnNum = doc.metadata[i].txnNum;
+ const txnNum = doc.metadata[i].txnNum.valueOf();
updatedDocsServerHistory[txnNum] = updatedDocsServerHistory[txnNum] || [];
updatedDocsServerHistory[txnNum].push({
_id: doc._id,
@@ -255,7 +255,7 @@ var $config = (function() {
prepareProbability: this.prepareProbability
});
- this.updatedDocsClientHistory[txnNumber] = committedTxnInfo;
+ this.updatedDocsClientHistory[txnNumber.valueOf()] = committedTxnInfo;
++this.iteration;
},