mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-22 05:15:04 +00:00
Call index_del() from _object_user_cache().
This commit is contained in:
parent
78b468f013
commit
bf08fba799
1 changed files with 1 additions and 0 deletions
1
data.c
1
data.c
|
@ -862,6 +862,7 @@ int _object_user_cache(snac *snac, const char *id, const char *cachedir, int del
|
|||
|
||||
if (del) {
|
||||
ret = unlink(cfn);
|
||||
index_del(idx, id);
|
||||
}
|
||||
else {
|
||||
if ((ret = link(ofn, cfn)) != -1)
|
||||
|
|
Loading…
Reference in a new issue