Skip to content

Commit

Permalink
reset rreq time every time we reuse a rreq
Browse files Browse the repository at this point in the history
  • Loading branch information
yawzhang authored and Besroy committed Dec 24, 2024
1 parent 877c041 commit b4ddbaa
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

class HomestoreConan(ConanFile):
name = "homestore"
version = "6.6.2"
version = "6.6.3"

homepage = "/~https://github.com/eBay/Homestore"
description = "HomeStore Storage Engine"
Expand Down
5 changes: 3 additions & 2 deletions src/lib/replication/repl_dev/raft_repl_dev.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -489,8 +489,9 @@ repl_req_ptr_t RaftReplDev::applier_create_req(repl_key const& rkey, journal_typ
auto rreq = it->second;

if (!happened) {
// We already have the entry in the map, check if we are already allocated the blk by previous caller, in
// that case we need to return the req.
// We already have the entry in the map, reset its start time to prevent it from being incorrectly gc during use.
rreq->set_created_time();
// Check if we are already allocated the blk by previous caller, in that case we need to return the req.
if (rreq->has_state(repl_req_state_t::BLK_ALLOCATED)) {
// Do validation if we have the correct mapping
// RD_REL_ASSERT(blob_equals(user_header, rreq->header), "User header mismatch for repl_key={}",
Expand Down

0 comments on commit b4ddbaa

Please sign in to comment.