summaryrefslogtreecommitdiff
path: root/jstests/replsets/standalone_replication_recovery_prepare_with_commit.js
blob: a09bbb70ecf1ce8d32ab357e34309a801ef75511 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/**
 * Tests that we can recover a transaction that was prepared and committed using the
 * 'recoverFromOplogAsStandalone' flag.
 *
 * This test only makes sense for storage engines that support recover to stable timestamp.
 * @tags: [requires_wiredtiger, requires_persistence, requires_journaling, requires_replication,
 * requires_majority_read_concern, uses_transactions, uses_prepare_transaction]
 */
(function() {
    "use strict";
    load("jstests/replsets/libs/prepare_standalone_replication_recovery.js");

    const testName = "standalone_replication_recovery_prepare_with_commit";

    testPrepareRecoverFromOplogAsStandalone(testName, /* commitBeforeRecovery */ true);
})();