summaryrefslogtreecommitdiff
path: root/data.c
diff options
context:
space:
mode:
authorGravatar default2024-04-11 19:39:45 +0200
committerGravatar default2024-04-11 19:39:45 +0200
commite362dfc3563c2564b550a3274f7bf5c7ad9e92f8 (patch)
tree84bcb644c5a10c36ba851cbed2b9432bc3764dfa /data.c
parentUndo for Likes and Announces are no longer dropped. (diff)
downloadsnac2-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.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/data.c b/data.c
index 5cf62e7..c55f70f 100644
--- a/data.c
+++ b/data.c
@@ -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