diff options
author | Chenhao Qu <chenhao.qu@mongodb.com> | 2022-11-02 11:54:33 +1100 |
---|---|---|
committer | Evergreen Agent <no-reply@evergreen.mongodb.com> | 2022-11-02 02:00:19 +0000 |
commit | 2ce063ee585aef729f67b61671b4d0469939664c (patch) | |
tree | 710b40bcd32d37d240f4a6fc88c35472d8d56447 /src/third_party/wiredtiger/test/csuite/random_abort/main.c | |
parent | 627a375f5d31ff7af5bd9e854fc9a3186872c219 (diff) | |
download | mongo-2ce063ee585aef729f67b61671b4d0469939664c.tar.gz |
Import wiredtiger: f78c826b67e6f4ea78a4c90aaff4c799979ce29f from branch mongodb-master
ref: 6215c6d628..f78c826b67
for: 6.2.0-rc0
Revert "WT-9871 schema_abort : Move tiered storage functionality to test_util
Diffstat (limited to 'src/third_party/wiredtiger/test/csuite/random_abort/main.c')
-rw-r--r-- | src/third_party/wiredtiger/test/csuite/random_abort/main.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/third_party/wiredtiger/test/csuite/random_abort/main.c b/src/third_party/wiredtiger/test/csuite/random_abort/main.c index ff06a4bb6bc..a3a4e35f997 100644 --- a/src/third_party/wiredtiger/test/csuite/random_abort/main.c +++ b/src/third_party/wiredtiger/test/csuite/random_abort/main.c @@ -61,12 +61,14 @@ static bool inmem; #define MODIFY_RECORD_FILE_ID 2 #define MAX_RECORD_FILES 3 +#define ENV_CONFIG_COMPAT ",compatibility=(release=\"2.9\")" #define ENV_CONFIG_DEF \ "create,log=(file_max=10M,enabled),statistics=(all),statistics_log=(json,on_close,wait=1)" #define ENV_CONFIG_TXNSYNC \ "create,log=(file_max=10M,enabled)," \ "transaction_sync=(enabled,method=none),statistics=(all),statistics_log=(json,on_close,wait=" \ "1)" +#define ENV_CONFIG_REC "log=(recover=on),statistics=(all),statistics_log=(json,on_close,wait=1)" /* * A minimum width of 10, along with zero filling, means that all the keys sort according to their @@ -324,7 +326,7 @@ fill_db(uint32_t nth) else strcpy(envconf, ENV_CONFIG_TXNSYNC); if (compat) - strcat(envconf, TESTUTIL_ENV_CONFIG_COMPAT); + strcat(envconf, ENV_CONFIG_COMPAT); testutil_check(wiredtiger_open(NULL, NULL, envconf, &conn)); testutil_check(conn->open_session(conn, NULL, NULL, &session)); @@ -394,7 +396,7 @@ recover_and_verify(uint32_t nthreads) bool columnar_table, fatal; printf("Open database, run recovery and verify content\n"); - testutil_check(wiredtiger_open(NULL, NULL, TESTUTIL_ENV_CONFIG_REC, &conn)); + testutil_check(wiredtiger_open(NULL, NULL, ENV_CONFIG_REC, &conn)); testutil_check(conn->open_session(conn, NULL, NULL, &session)); testutil_check(session->open_cursor(session, col_uri, NULL, NULL, &col_cursor)); testutil_check(session->open_cursor(session, uri, NULL, NULL, &row_cursor)); |