summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordefault <nobody@localhost>2023-07-04 14:34:32 +0200
committerdefault <nobody@localhost>2023-07-04 14:34:32 +0200
commitbf08fba799d1ee693bf6db09be1a0b1e10f5496c (patch)
tree45913b34132cbccf0f1c91868c9f4fdce1b92684
parent78b468f013cc2624a4b9044393eb2c86556c98b7 (diff)
Call index_del() from _object_user_cache().
-rw-r--r--data.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/data.c b/data.c
index 87cfc98..b3fd8b3 100644
--- a/data.c
+++ b/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)