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

Only record a file-level error,don't send notification #2701

Merged
merged 2 commits into from
Aug 28, 2023

Conversation

feiniks
Copy link
Contributor

@feiniks feiniks commented Aug 25, 2023

No description provided.

@@ -5201,9 +5201,10 @@ download_files_http (const char *repo_id,

// Record a file-level sync error when failed to checkout file.
if (rc == FETCH_CHECKOUT_FAILED) {
send_file_sync_error_notification (repo_id, repo_name, de->name,
SYNC_ERROR_ID_CHECKOUT_FILE);
seaf_repo_manager_record_sync_error (repo_id, repo_name, de->name,
Copy link
Member

Choose a reason for hiding this comment

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

这个应该给每个 repo 记录一个内存中的状态,是否发送过 checkout 失败的警告。如果没发送过就发送一次;重启之后这个状态重置。

完全不发送也不好。

@killing killing merged commit 8ac92a6 into master Aug 28, 2023
@killing killing deleted the fix_checkout_file branch August 28, 2023 07:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants