1
0
mirror of https://github.com/haiwen/seafile-server.git synced 2025-08-02 15:48:06 +00:00

Fix check block exists.

This commit is contained in:
ly1217 2019-08-26 19:53:36 -07:00
parent 75eeadbfaf
commit b224a39fb9

View File

@ -176,6 +176,9 @@ seaf_block_manager_copy_block (SeafBlockManager *mgr,
{
if (strcmp (block_id, EMPTY_SHA1) == 0)
return 0;
if (seaf_block_manager_block_exists (mgr, dst_store_id, dst_version, block_id)) {
return 0;
}
return mgr->backend->copy (mgr->backend,
src_store_id,