Skip to content

Commit

Permalink
Update pika_consensus.h
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexStocks committed Jul 31, 2024
1 parent 86f7252 commit 983ca95
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion include/pika_consensus.h
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ class ConsensusCoordinator {
pstd::Status InternalAppendLog(const std::shared_ptr<Cmd>& cmd_ptr);
pstd::Status InternalAppendBinlog(const std::shared_ptr<Cmd>& cmd_ptr);
void InternalApply(const MemLog::LogItem& log);
void InternalApplyFollower(std::shared_ptr<Cmd> cmd_ptr);
void InternalApplyFollower(const std::shared_ptr<Cmd>& cmd_ptr);

pstd::Status GetBinlogOffset(const BinlogOffset& start_offset, LogOffset* log_offset);
pstd::Status GetBinlogOffset(const BinlogOffset& start_offset, const BinlogOffset& end_offset,
Expand All @@ -182,6 +182,7 @@ class ConsensusCoordinator {
pstd::Status FindLogicOffset(const BinlogOffset& start_offset, uint64_t target_index, LogOffset* found_offset);
pstd::Status GetLogsBefore(const BinlogOffset& start_offset, std::vector<LogOffset>* hints);

private:
// keep members in this class works in order
pstd::Mutex order_mu_;

Expand Down

0 comments on commit 983ca95

Please sign in to comment.