Skip to content

Commit

Permalink
remove unsed code about cache_for_search
Browse files Browse the repository at this point in the history
  • Loading branch information
thawk105 committed Jul 27, 2023
1 parent 40e75e6 commit 5720ab0
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions src/concurrency_control/include/session.h
Original file line number Diff line number Diff line change
Expand Up @@ -144,10 +144,6 @@ class alignas(CACHE_LINE_SIZE) session {
return tx_counter_;
}

[[nodiscard]] Tuple* get_cache_for_search_ptr() {
return &cache_for_search_;
}

// ========== start: tx state
[[nodiscard]] bool get_has_current_tx_state_handle() const {
return has_current_tx_state_handle_;
Expand Down Expand Up @@ -352,11 +348,6 @@ class alignas(CACHE_LINE_SIZE) session {

void set_tx_counter(tx_id::type_lower_info num) { tx_counter_ = num; }

void set_cache_for_search(Tuple tuple) {
cache_for_search_ = std::move(tuple);
} // NOLINT
// because Tuple is small size data.

// ========== start: tx state
void set_current_tx_state_handle(TxStateHandle hd) {
current_tx_state_handle_.store(hd, std::memory_order_release);
Expand Down Expand Up @@ -528,13 +519,6 @@ class alignas(CACHE_LINE_SIZE) session {
*/
std::shared_mutex mtx_read_set_for_stx_;

/**
* @brief cache for search api.
* @details The search function returns Tuple *. For speeding up, the
* entity does not currently exist on the table, so we have it here.
*/
Tuple cache_for_search_;

/**
* @brief local write set.
*/
Expand Down

0 comments on commit 5720ab0

Please sign in to comment.