Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
git2
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lvzhengyang
git2
Commits
6e57010b
Unverified
Commit
6e57010b
authored
Feb 18, 2021
by
Edward Thomson
Committed by
GitHub
Feb 18, 2021
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #5800 from mamapanda/check-sortedcache-lock
parents
935f8513
36232528
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
src/refdb_fs.c
+4
-2
No files found.
src/refdb_fs.c
View file @
6e57010b
...
...
@@ -254,7 +254,8 @@ static int loose_lookup_to_packfile(refdb_fs_backend *backend, const char *name)
if
((
error
=
loose_parse_oid
(
&
oid
,
name
,
&
ref_file
))
<
0
)
goto
done
;
git_sortedcache_wlock
(
backend
->
refcache
);
if
((
error
=
git_sortedcache_wlock
(
backend
->
refcache
))
<
0
)
goto
done
;
if
(
!
(
error
=
git_sortedcache_upsert
(
(
void
**
)
&
ref
,
backend
->
refcache
,
name
)))
{
...
...
@@ -760,7 +761,8 @@ static int reference_path_available(
}
}
git_sortedcache_rlock
(
backend
->
refcache
);
if
((
error
=
git_sortedcache_rlock
(
backend
->
refcache
))
<
0
)
return
error
;
for
(
i
=
0
;
i
<
git_sortedcache_entrycount
(
backend
->
refcache
);
++
i
)
{
struct
packref
*
ref
=
git_sortedcache_entry
(
backend
->
refcache
,
i
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment