diff options
| author | Russell Belfer <rb@github.com> | 2013-08-21 22:44:56 -0700 |
|---|---|---|
| committer | Russell Belfer <rb@github.com> | 2013-08-21 22:44:56 -0700 |
| commit | e8c5eb5537cc58fa29d4ed48ab9114238ba4cab0 (patch) | |
| tree | 388654a84100bb71c839956dd20663cb9a8f454c | |
| parent | b37359aac5b02f59c07b453b53191432abc0f942 (diff) | |
| download | libgit2-e8c5eb5537cc58fa29d4ed48ab9114238ba4cab0.tar.gz | |
No need to lock newly created tgt in copy
| -rw-r--r-- | src/sortedcache.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/src/sortedcache.c b/src/sortedcache.c index d7e74d3e5..d0a8031c3 100644 --- a/src/sortedcache.c +++ b/src/sortedcache.c @@ -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; |
