diff options
| author | 2024-04-11 19:39:45 +0200 | |
|---|---|---|
| committer | 2024-04-11 19:39:45 +0200 | |
| commit | e362dfc3563c2564b550a3274f7bf5c7ad9e92f8 (patch) | |
| tree | 84bcb644c5a10c36ba851cbed2b9432bc3764dfa /data.c | |
| parent | Undo for Likes and Announces are no longer dropped. (diff) | |
| download | snac2-e362dfc3563c2564b550a3274f7bf5c7ad9e92f8.tar.gz snac2-e362dfc3563c2564b550a3274f7bf5c7ad9e92f8.tar.xz snac2-e362dfc3563c2564b550a3274f7bf5c7ad9e92f8.zip | |
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) | |||
| 2744 | } | 2744 | } |
| 2745 | } | 2745 | } |
| 2746 | } | 2746 | } |
| 2747 | |||
| 2748 | /* delete index backups */ | ||
| 2749 | xs *specb = xs_fmt("%s/" "*.bak", v); | ||
| 2750 | xs *bakfs = xs_glob(specb, 0, 0); | ||
| 2751 | |||
| 2752 | p2 = bakfs; | ||
| 2753 | while (xs_list_iter(&p2, &v2)) { | ||
| 2754 | unlink(v2); | ||
| 2755 | srv_debug(1, xs_fmt("purged %s", v2)); | ||
| 2756 | } | ||
| 2747 | } | 2757 | } |
| 2748 | } | 2758 | } |
| 2749 | 2759 | ||