Skip to content

Commit

Permalink
udpate proposer (corresponding issue in [https://docs.google.com/docu…
Browse files Browse the repository at this point in the history
  • Loading branch information
yawzhang committed Dec 3, 2024
1 parent 7811855 commit e1e318a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 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.5.18"
version = "6.5.19"

homepage = "https://github.com/eBay/Homestore"
description = "HomeStore Storage Engine"
Expand Down
2 changes: 1 addition & 1 deletion src/lib/replication/repl_dev/raft_repl_dev.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -501,7 +501,7 @@ repl_req_ptr_t RaftReplDev::applier_create_req(repl_key const& rkey, journal_typ
// We need to allocate the block, since entry doesn't exist or if it exist, two threads are trying to do the same
// thing. So take state mutex and allocate the blk
std::unique_lock< std::mutex > lg(rreq->m_state_mtx);
rreq->init(rkey, code, false /* is_proposer */, user_header, key, data_size);
rreq->init(rkey, code, m_raft_server_id == rkey.server_id, user_header, key, data_size);

// There is no data portion, so there is not need to allocate
if (!rreq->has_linked_data()) { return rreq; }
Expand Down
1 change: 1 addition & 0 deletions src/lib/replication/repl_dev/raft_state_machine.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ repl_req_ptr_t RaftStateMachine::localize_journal_entry_finish(nuraft::log_entry

auto rreq = m_rd.repl_key_to_req(rkey);
if ((rreq == nullptr) || (rreq->is_localize_pending())) {
RD_LOGE("Should not happen in current implementation! rkey=[{}]", rkey.to_string());
rreq = localize_journal_entry_prepare(lentry);
if (rreq == nullptr) {
RELEASE_ASSERT(rreq != nullptr,
Expand Down

0 comments on commit e1e318a

Please sign in to comment.