Skip to content

Commit

Permalink
ignore TXN_FLAG_READ_MOSTLY since SSN's and SSI's read optimization a…
Browse files Browse the repository at this point in the history
…re not available
  • Loading branch information
YongjunHe committed Dec 19, 2020
1 parent a8a1ef1 commit c403e0f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion benchmarks/tpcc-cs.cc
Original file line number Diff line number Diff line change
Expand Up @@ -963,7 +963,8 @@ ermia::coro::generator<rc_t> tpcc_cs_worker::txn_credit_check(uint32_t idx, ermi
} // credit-check

ermia::coro::generator<rc_t> tpcc_cs_worker::txn_query2(uint32_t idx, ermia::epoch_num begin_epoch) {
ermia::transaction *txn = db->NewTransaction(ermia::transaction::TXN_FLAG_CSWITCH | ermia::transaction::TXN_FLAG_READ_MOSTLY,
// TODO(yongjunh): use TXN_FLAG_READ_MOSTLY once SSN's and SSI's read optimization are available.
ermia::transaction *txn = db->NewTransaction(ermia::transaction::TXN_FLAG_CSWITCH,
arenas[idx],
&transactions[idx],
idx);
Expand Down
3 changes: 2 additions & 1 deletion benchmarks/tpce.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3383,7 +3383,8 @@ rc_t tpce_worker::DoTradeUpdateFrame3(const TTradeUpdateFrame3Input *pIn,
}

rc_t tpce_worker::DoLongQueryFrame1() {
txn = db->NewTransaction(ermia::transaction::TXN_FLAG_READ_MOSTLY, arena, txn_buf());
// FIXME(yongjunh): use TXN_FLAG_READ_MOSTLY once SSN's and SSI's read optimization are available.
txn = db->NewTransaction(0, arena, txn_buf());

auto total_range = max_ca_id - min_ca_id;
auto scan_range_size = (max_ca_id - min_ca_id) / 100 * long_query_scan_range;
Expand Down

0 comments on commit c403e0f

Please sign in to comment.