Skip to content

Commit

Permalink
fix for clang-tidy
Browse files Browse the repository at this point in the history
  • Loading branch information
thawk105 committed Jan 31, 2024
1 parent 44109eb commit 17534d5
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions src/concurrency_control/read_plan.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,17 @@ bool read_plan::check_potential_read_anti(std::size_t const tx_id,
// check conflict storage level
if (std::get<0>(p_elem) == elem.first) {
// check key range level
std::string w_lkey = std::get<0>(elem.second);
std::string w_rkey = std::get<1>(elem.second);
std::string r_lkey = std::get<2>(p_elem);
scan_endpoint r_lpoint = std::get<3>(p_elem);
std::string r_rkey = std::get<4>(p_elem);
scan_endpoint r_rpoint = std::get<5>(p_elem);
// todo: use constant value, not magic number
std::string w_lkey =
std::get<0>(elem.second); // NOLINT
std::string w_rkey =
std::get<1>(elem.second); // NOLINT
std::string r_lkey = std::get<2>(p_elem); // NOLINT
scan_endpoint r_lpoint =
std::get<3>(p_elem); // NOLINT
std::string r_rkey = std::get<4>(p_elem); // NOLINT
scan_endpoint r_rpoint =
std::get<5>(p_elem); // NOLINT
// define write range [], read range ()
if (
// case: [(])
Expand Down

0 comments on commit 17534d5

Please sign in to comment.