Skip to content

Commit

Permalink
Fix add replay entry
Browse files Browse the repository at this point in the history
Signed-off-by: Jin Hai <[email protected]>
  • Loading branch information
JinHai-CN committed Jan 13, 2025
1 parent d14df22 commit f7d57d0
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/storage/meta/entry/entry_list.cppm
Original file line number Diff line number Diff line change
Expand Up @@ -458,10 +458,7 @@ Tuple<Entry *, Status> EntryList<Entry>::AddEntryReplay(std::function<SharedPtr<
return {entry_ptr, Status::OK()};
}
case FindResult::kFound: {
SharedPtr<Entry> entry = init_func(txn_id, begin_ts);
auto *entry_ptr = entry.get();
entry_list_.push_front(std::move(entry));
return {entry_ptr, Status::OK()};
return {nullptr, Status::DuplicateEntry()};
}
default: {
return {nullptr, Status::InvalidEntry()};
Expand Down

0 comments on commit f7d57d0

Please sign in to comment.