Call index_del() from _object_user_cache().

This commit is contained in:
default 2023-07-04 14:34:32 +02:00
parent 78b468f013
commit bf08fba799

1
data.c
View file

@ -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)