Skip to content

Commit

Permalink
Return -1 when block is missing
Browse files Browse the repository at this point in the history
  • Loading branch information
杨赫然 committed Jan 13, 2025
1 parent 2bb0bae commit bdc7433
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions server/gc/verify.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ check_blocks (VerifyData *data, const char *file_id)
for (i = 0; i < seafile->n_blocks; ++i) {
if (!g_hash_table_lookup(data->exist_blocks, seafile->blk_sha1s[i])) {
seaf_message ("Block %s is missing.\n", seafile->blk_sha1s[i]);
return -1;
}
}

Expand Down

0 comments on commit bdc7433

Please sign in to comment.