From 8a5067cae4ebaf4ff794d6822af3b4803daaa1d7 Mon Sep 17 00:00:00 2001 From: default Date: Wed, 8 Nov 2023 18:37:07 +0100 Subject: [PATCH] When purging tag indexes, also delete the .bak files. --- data.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/data.c b/data.c index a544d1c..d272617 100644 --- a/data.c +++ b/data.c @@ -2511,8 +2511,11 @@ void purge_server(void) xs_str *v2; p2 = files; - while (xs_list_iter(&p2, &v2)) + while (xs_list_iter(&p2, &v2)) { tag_gc += index_gc(v2); + xs *bak = xs_fmt("%s.bak", v2); + unlink(bak); + } } srv_debug(1, xs_fmt("purge: global "