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

Add block missing sync error #2694

Merged
merged 2 commits into from
Jul 21, 2023
Merged

Add block missing sync error #2694

merged 2 commits into from
Jul 21, 2023

Conversation

feiniks
Copy link
Contributor

@feiniks feiniks commented Jul 21, 2023

No description provided.

@@ -1101,6 +1102,8 @@ http_error_to_http_task_error (int status)
return SYNC_ERROR_ID_SERVER_REPO_CORRUPT;
else if (status == HTTP_REPO_TOO_LARGE || status == HTTP_REQUEST_TIME_OUT)
return SYNC_ERROR_ID_LIBRARY_TOO_LARGE;
else if (status == HTTP_BLOCK_MISSING)
return SYNC_ERROR_ID_BLOCK_MISSING;
Copy link
Member

Choose a reason for hiding this comment

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

想了一下,为了便于问题排查和处理,服务器端应该一次性把所有没有上传完整的文件名在 reponse body 中以 JSON 格式返回。客户端在日志中打印一下。

@killing killing merged commit 98b5288 into master Jul 21, 2023
@killing killing deleted the check_block branch July 21, 2023 07:06
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.

None yet

2 participants