Skip to content

Commit 053ccf8

Browse files
committed
Make snapshot the default txn mode
Signed-off-by: mdouglas47 <[email protected]>
1 parent 224d287 commit 053ccf8

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

db/comdb2.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -460,8 +460,8 @@ int gbl_disable_overflow_page_trace = 1;
460460
int gbl_simulate_rowlock_deadlock_interval = 0;
461461
int gbl_enable_berkdb_retry_deadlock_bias = 0;
462462
int gbl_enable_cache_internal_nodes = 1;
463-
int gbl_use_modsnap_for_snapshot = 0;
464-
int gbl_modsnap_asof = 0;
463+
int gbl_use_modsnap_for_snapshot = 1;
464+
int gbl_modsnap_asof = 1;
465465
int gbl_rep_process_txn_time = 0;
466466
int gbl_utxnid_log = 1;
467467
int gbl_test_commit_lsn_map = 0;
@@ -532,7 +532,7 @@ int gbl_rowlocks = 0;
532532
int gbl_disable_tagged_api = 1;
533533
int gbl_disable_tagged_api_writes = 1;
534534
int gbl_serializable = 0; // Just for bookkeeping
535-
int gbl_snapisol = 0;
535+
int gbl_snapisol = 1;
536536
int gbl_new_snapisol = 0;
537537
int gbl_new_snapisol_asof = 0;
538538
int gbl_new_snapisol_logging = 0;

plugins/newsql/newsql.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2409,9 +2409,7 @@ newsql_loop_result newsql_loop(struct sqlclntstate *clnt, CDB2SQLQUERY *sql_quer
24092409
clnt->continued_on_chunk_verify_error = 0;
24102410
clnt->ctrl_sqlengine = SQLENG_NORMAL_PROCESS;
24112411
}
2412-
if (clnt->dbtran.mode < TRANLEVEL_SOSQL) {
2413-
clnt->dbtran.mode = TRANLEVEL_SOSQL;
2414-
}
2412+
clnt->dbtran.mode = TRANLEVEL_MODSNAP;
24152413
clnt->osql.sent_column_data = 0;
24162414

24172415
if (clnt->tzname[0] == 0 && sql_query->tzname) {

0 commit comments

Comments
 (0)