Commit 42fabe9d authored by 未命名(null)队's avatar 未命名(null)队
Browse files

fix: unexpected update caused by non_copy of get_record in the update executor

Showing with 2 additions and 2 deletions
+2 -2
......@@ -55,8 +55,8 @@ public:
// 这里 next 只会被调用一次
std::unique_ptr<RmRecord> Next() override {
for (auto &rid: rids_) {
auto &&updated_record = fh_->get_record(rid, context_);
auto old_record = std::make_unique<RmRecord>(*updated_record);
auto &&old_record = fh_->get_record(rid, context_);
auto updated_record = std::make_unique<RmRecord>(*old_record);
for (int i = 0; i < set_clauses_.size(); ++i) {
auto &col_meta = set_cols_[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