Skip to content

Commit

Permalink
remove sync_error_stage
Browse files Browse the repository at this point in the history
  • Loading branch information
KernelMaker committed Aug 15, 2017
1 parent ab7dd23 commit 979892f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/pika_trysync_thread.cc
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,9 @@ bool PikaTrysyncThread::RecvProc() {
LOG(WARNING) << "Reply from master after trysync: " << reply;
if (!is_authed && should_auth) {
if (kInnerReplOk != slash::StringToLower(reply)) {
LOG(WARNING) << "auth with master, error, come in SyncError stage";
g_pika_server->SyncError();
// LOG(WARNING) << "auth with master, error, come in SyncError stage";
// g_pika_server->SyncError();
LOG(WARNING) << "Auth with master error: " << reply;
return false;
}
is_authed = true;
Expand All @@ -110,8 +111,9 @@ bool PikaTrysyncThread::RecvProc() {
LOG(INFO) << "Need wait to sync";
g_pika_server->NeedWaitDBSync();
} else {
LOG(WARNING) << "something wrong with sync, come in SyncError stage";
g_pika_server->SyncError();
// LOG(WARNING) << "something wrong with sync, come in SyncError stage";
// g_pika_server->SyncError();
LOG(WARNING) << "trysync, error: " << reply;
}
return false;
}
Expand Down

0 comments on commit 979892f

Please sign in to comment.