mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-22 13:25:04 +00:00
When purging tag indexes, also delete the .bak files.
This commit is contained in:
parent
b199f223e4
commit
8a5067cae4
1 changed files with 4 additions and 1 deletions
5
data.c
5
data.c
|
@ -2511,8 +2511,11 @@ void purge_server(void)
|
||||||
xs_str *v2;
|
xs_str *v2;
|
||||||
|
|
||||||
p2 = files;
|
p2 = files;
|
||||||
while (xs_list_iter(&p2, &v2))
|
while (xs_list_iter(&p2, &v2)) {
|
||||||
tag_gc += index_gc(v2);
|
tag_gc += index_gc(v2);
|
||||||
|
xs *bak = xs_fmt("%s.bak", v2);
|
||||||
|
unlink(bak);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
srv_debug(1, xs_fmt("purge: global "
|
srv_debug(1, xs_fmt("purge: global "
|
||||||
|
|
Loading…
Reference in a new issue