Skip to content
This repository has been archived by the owner on Jun 23, 2022. It is now read-only.

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
neverchanje committed Dec 24, 2019
1 parent 27cba8c commit fb53b9b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
12 changes: 6 additions & 6 deletions src/dist/replication/lib/replica.h
Original file line number Diff line number Diff line change
Expand Up @@ -234,12 +234,12 @@ class replica : public serverlet<replica>, public ref_counter, public replica_ba
void notify_learn_completion();
error_code apply_learned_state_from_private_log(learn_state &state);

bool prepare_learn_from_cache(const learn_request &request,
decree learn_start_decree,
decree local_committed_decree,
remote_learner_state &learner_state,
learn_response &response,
bool &delayed_replay_prepare_list);
bool prepare_cached_learn_state(const learn_request &request,
decree learn_start_decree,
decree local_committed_decree,
remote_learner_state &learner_state,
learn_response &response,
bool &delayed_replay_prepare_list);

/////////////////////////////////////////////////////////////////
// failure handling
Expand Down
12 changes: 6 additions & 6 deletions src/dist/replication/lib/replica_learn.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -347,12 +347,12 @@ void replica::on_learn(dsn::message_ex *msg, const learn_request &request)

// learn delta state or checkpoint
// in this case, the state on the PS is still incomplete
if (!prepare_learn_from_cache(request,
learn_start_decree,
local_committed_decree,
learn_state,
response,
delayed_replay_prepare_list)) {
if (!prepare_cached_learn_state(request,
learn_start_decree,
local_committed_decree,
learner_state,
response,
delayed_replay_prepare_list)) {
if (learn_start_decree > _app->last_durable_decree()) {
ddebug("%s: on_learn[%016" PRIx64 "]: learner = %s, choose to learn private logs, "
"because learn_start_decree(%" PRId64 ") > _app->last_durable_decree(%" PRId64
Expand Down

0 comments on commit fb53b9b

Please sign in to comment.