diff options
author | default <nobody@localhost> | 2024-04-11 19:39:45 +0200 |
---|---|---|
committer | default <nobody@localhost> | 2024-04-11 19:39:45 +0200 |
commit | e362dfc3563c2564b550a3274f7bf5c7ad9e92f8 (patch) | |
tree | 84bcb644c5a10c36ba851cbed2b9432bc3764dfa /data.c | |
parent | 46f2e324d8df49af914ba5781f13337dea7dd6aa (diff) |
Also purge like and announce index backups.
Diffstat (limited to 'data.c')
-rw-r--r-- | data.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -2744,6 +2744,16 @@ void purge_server(void) } } } + + /* delete index backups */ + xs *specb = xs_fmt("%s/" "*.bak", v); + xs *bakfs = xs_glob(specb, 0, 0); + + p2 = bakfs; + while (xs_list_iter(&p2, &v2)) { + unlink(v2); + srv_debug(1, xs_fmt("purged %s", v2)); + } } } |