Skip to content

Commit

Permalink
typo
Browse files Browse the repository at this point in the history
  • Loading branch information
jiachun.fjc committed Aug 20, 2019
1 parent 535e159 commit 42434e5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/braft/replicator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ void Replicator::_on_heartbeat_returned(
<< ", group " << r->_options.group_id;
butil::Status status;
status.set_error(EHIGHERTERMRESPONSE, "Leader receives higher term "
"hearbeat_response from peer:%s", r->_options.peer_id.to_string().c_str());
"heartbeat_response from peer:%s", r->_options.peer_id.to_string().c_str());
r->_destroy();
node_impl->increase_term_to(response->term(), status);
node_impl->Release();
Expand Down Expand Up @@ -888,7 +888,7 @@ void Replicator::_on_install_snapshot_returned(
succ = false;
ss << " fail.";
LOG(INFO) << ss.str();
// Let hearbeat do step down
// Let heartbeat do step down
break;
}
// Success
Expand Down
2 changes: 1 addition & 1 deletion src/braft/replicator.h
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ class BAIDU_CACHELINE_ALIGNMENT Replicator {

int _prepare_entry(int offset, EntryMeta* em, butil::IOBuf* data);
void _wait_more_entries();
void _send_empty_entries(bool is_hearbeat);
void _send_empty_entries(bool is_heartbeat);
void _send_entries();
void _notify_on_caught_up(int error_code, bool);
int _fill_common_fields(AppendEntriesRequest* request, int64_t prev_log_index,
Expand Down

0 comments on commit 42434e5

Please sign in to comment.