diff options
author | Kim Tao <kimberly.tao@mongodb.com> | 2019-01-15 15:07:28 -0500 |
---|---|---|
committer | Kim Tao <kimberly.tao@mongodb.com> | 2019-01-30 13:23:30 -0500 |
commit | 6dc4072453b4ba17fed636f049c10cf1316357bb (patch) | |
tree | 4b2536e1077a6a77539c2debb2738c89a9119664 /jstests/sharding | |
parent | b7df0530e35a23bc1139f22a84ff4ba8b7688b4a (diff) | |
download | mongo-6dc4072453b4ba17fed636f049c10cf1316357bb.tar.gz |
SERVER-38324: add validation to TransactionCoordinatorDocument decision
Diffstat (limited to 'jstests/sharding')
-rw-r--r-- | jstests/sharding/txn_basic_two_phase_commit.js | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/jstests/sharding/txn_basic_two_phase_commit.js b/jstests/sharding/txn_basic_two_phase_commit.js index 3fb043e0410..530399df016 100644 --- a/jstests/sharding/txn_basic_two_phase_commit.js +++ b/jstests/sharding/txn_basic_two_phase_commit.js @@ -40,11 +40,11 @@ .getCollection("transaction_coordinators") .findOne({"_id.lsid.id": lsid.id, "_id.txnNumber": txnNumber}); assert.neq(null, coordDoc); - assert.eq(expectedDecision, coordDoc.decision); + assert.eq(expectedDecision, coordDoc.decision.decision); if (expectedDecision === "commit") { - assert.neq(null, coordDoc.commitTimestamp); + assert.neq(null, coordDoc.decision.commitTimestamp); } else { - assert.eq(null, coordDoc.commitTimestamp); + assert.eq(null, coordDoc.decision.commitTimestamp); } }; |