mirror of https://github.com/mongodb/mongo
14 lines
643 B
JavaScript
14 lines
643 B
JavaScript
/**
|
|
* 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_persistence, requires_replication,
|
|
* requires_majority_read_concern, uses_transactions, uses_prepare_transaction]
|
|
*/
|
|
import {testPrepareRecoverFromOplogAsStandalone} from "jstests/replsets/libs/prepare_standalone_replication_recovery.js";
|
|
|
|
const testName = "standalone_replication_recovery_prepare_with_commit";
|
|
|
|
testPrepareRecoverFromOplogAsStandalone(testName, /* commitBeforeRecovery */ true);
|