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:
parent
75eeadbfaf
commit
b224a39fb9
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user