Commit b0bad711 authored by Ma1oneR6's avatar Ma1oneR6
Browse files

fix(index): fix coredump

parent bdf26659
No related merge requests found
Showing with 1 addition and 2 deletions
+1 -2
...@@ -50,7 +50,6 @@ private: ...@@ -50,7 +50,6 @@ private:
std::unique_ptr<RmRecord> upper_cmp_key_; std::unique_ptr<RmRecord> upper_cmp_key_;
bool is_upper; bool is_upper;
std::vector<int> offsets_; std::vector<int> offsets_;
// 00000 less
bool checkCondition(const std::unique_ptr<RmRecord> &rec) { bool checkCondition(const std::unique_ptr<RmRecord> &rec) {
for (auto &cond: conds_) { for (auto &cond: conds_) {
auto col = get_col(cols_, cond.lhs_col); auto col = get_col(cols_, cond.lhs_col);
...@@ -202,7 +201,7 @@ public: ...@@ -202,7 +201,7 @@ public:
auto rhs_pos = std::find(index_col_names_.begin(), index_col_names_.end(), rhs.lhs_col.col_name) - index_col_names_.begin(); auto rhs_pos = std::find(index_col_names_.begin(), index_col_names_.end(), rhs.lhs_col.col_name) - index_col_names_.begin();
return lhs_pos < rhs_pos; return lhs_pos < rhs_pos;
}); });
std::vector<std::vector<bool>> status(3, std::vector<bool>(conds_.size() + 8, false)); std::vector<std::vector<bool>> status(4, std::vector<bool>(index_col_names_.size() + 8, false));
size_t cnt_left = 0, cnt_right = 0; size_t cnt_left = 0, cnt_right = 0;
for (size_t i = 0; i < conds_.size(); i++) { for (size_t i = 0; i < conds_.size(); i++) {
const auto &cond = conds_[i]; const auto &cond = conds_[i];
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment