-
Notifications
You must be signed in to change notification settings - Fork 1.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: after full synchronization fails, full synchronization will be skipped directly(#2433) #2439
Conversation
} else { | ||
SetReplState(ReplState::kError); | ||
return Status::Error("rsync client init failed!");; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
line 969 处我看没有记录 s error 的具体内容,所以你定义这个错误没啥用吧
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
原来想着定义个bool就行,表示成功或失败。你建议修改成 int 方便以后扩展,所以使用了 Status 。这里的 error 可以记录日志,也可以不记录日志。在调用 ActivateRsync() 函数的地方,有记录日志,需要重新进行全量同步。
…kipped directly(OpenAtomFoundation#2433) (OpenAtomFoundation#2439) Co-authored-by: liuchengyu <liuchengyu@360.cn>
…kipped directly(OpenAtomFoundation#2433) (OpenAtomFoundation#2439) Co-authored-by: liuchengyu <liuchengyu@360.cn>
…kipped directly(OpenAtomFoundation#2433) (OpenAtomFoundation#2439) Co-authored-by: liuchengyu <liuchengyu@360.cn>
…kipped directly(OpenAtomFoundation#2433) (OpenAtomFoundation#2439) Co-authored-by: liuchengyu <liuchengyu@360.cn>
…kipped directly(OpenAtomFoundation#2433) (OpenAtomFoundation#2439) Co-authored-by: liuchengyu <liuchengyu@360.cn>
fix: after full synchronization fails, full synchronization will be skipped directly(#2433)