summaryrefslogtreecommitdiff
path: root/data.c
diff options
context:
space:
mode:
authordefault <nobody@localhost>2024-04-30 09:14:03 +0200
committerdefault <nobody@localhost>2024-04-30 09:14:03 +0200
commit96830967e15bd6b1a89686c8c729b096ae6c4550 (patch)
treef596783239dbaa8daa6eae29f457682075ee40a2 /data.c
parentda18efd288bc8e69a0f755e576e3ba14dfedbcb3 (diff)
Also purge lists.
Diffstat (limited to 'data.c')
-rw-r--r--data.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/data.c b/data.c
index be8edaa..0d8aa8b 100644
--- a/data.c
+++ b/data.c
@@ -3012,6 +3012,19 @@ void purge_user(snac *snac)
srv_debug(1, xs_fmt("purge: %s %d", idx, gc));
}
+ /* purge lists */
+ {
+ xs *spec = xs_fmt("%s/list/" "*.idx", snac->basedir);
+ xs *lol = xs_glob(spec, 0, 0);
+ int c = 0;
+ char *v;
+
+ while (xs_list_next(lol, &v, &c)) {
+ int gc = index_gc(v);
+ srv_debug(1, xs_fmt("purge: %s %d", v, gc));
+ }
+ }
+
/* unrelated to purging, but it's a janitorial process, so what the hell */
verify_links(snac);
}