mirror of
https://git.proxmox.com/git/libgit2
synced 2025-05-24 01:58:13 +00:00
refdb: expect threaded test deletes to race
At times we may try to delete a reference which a different thread has already taken care of.
This commit is contained in:
parent
33248b9edb
commit
7c32d87450
@ -104,6 +104,10 @@ static void *delete_refs(void *arg)
|
|||||||
do {
|
do {
|
||||||
error = git_reference_delete(ref);
|
error = git_reference_delete(ref);
|
||||||
} while (error == GIT_ELOCKED);
|
} while (error == GIT_ELOCKED);
|
||||||
|
/* Sometimes we race with other deleter threads */
|
||||||
|
if (error == GIT_ENOTFOUND)
|
||||||
|
error = 0;
|
||||||
|
|
||||||
cl_git_pass(error);
|
cl_git_pass(error);
|
||||||
git_reference_free(ref);
|
git_reference_free(ref);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user