mirror of
https://git.proxmox.com/git/libgit2
synced 2025-08-07 11:46:18 +00:00
No need to lock newly created tgt in copy
This commit is contained in:
parent
b37359aac5
commit
e8c5eb5537
@ -130,9 +130,6 @@ int git_sortedcache_copy(
|
||||
return -1;
|
||||
}
|
||||
|
||||
if (git_sortedcache_lock(tgt) < 0)
|
||||
goto fail;
|
||||
|
||||
git_vector_foreach(&src->items, i, src_item) {
|
||||
if (git_sortedcache_upsert(
|
||||
&tgt_item, tgt, ((char *)src_item) + src->item_path_offset) < 0)
|
||||
@ -141,7 +138,6 @@ int git_sortedcache_copy(
|
||||
goto fail;
|
||||
}
|
||||
|
||||
git_sortedcache_unlock(tgt);
|
||||
git_sortedcache_unlock(src);
|
||||
|
||||
*out = tgt;
|
||||
|
Loading…
Reference in New Issue
Block a user