Skip to content
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

Merged
merged 1 commit into from
Mar 6, 2024

Conversation

chengyu-l
Copy link
Contributor

fix: after full synchronization fails, full synchronization will be skipped directly(#2433)

@github-actions github-actions bot added the ☢️ Bug Something isn't working label Mar 1, 2024
src/pika_rm.cc Outdated Show resolved Hide resolved
} else {
SetReplState(ReplState::kError);
return Status::Error("rsync client init failed!");;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

line 969 处我看没有记录 s error 的具体内容,所以你定义这个错误没啥用吧

Copy link
Contributor Author

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() 函数的地方,有记录日志,需要重新进行全量同步。

@Mixficsol Mixficsol removed the 3.5.3 label Mar 6, 2024
@AlexStocks AlexStocks merged commit f467e75 into OpenAtomFoundation:unstable Mar 6, 2024
14 checks passed
@chengyu-l chengyu-l deleted the issue2433 branch March 11, 2024 09:24
luky116 pushed a commit to luky116/pika that referenced this pull request Mar 14, 2024
luky116 pushed a commit to luky116/pika that referenced this pull request Mar 14, 2024
luky116 pushed a commit that referenced this pull request Mar 18, 2024
bigdaronlee163 pushed a commit to bigdaronlee163/pika that referenced this pull request Jun 8, 2024
cheniujh pushed a commit to cheniujh/pika that referenced this pull request Sep 24, 2024
cheniujh pushed a commit to cheniujh/pika that referenced this pull request Sep 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
3.5.4 ☢️ Bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants