commit 9683096

default  ·  2024-04-30 07:14:03 +0000 UTC
parent da18efd
Also purge lists.
1 files changed,  +13, -0
M data.c
M data.c
+13, -0
 1@@ -3012,6 +3012,19 @@ void purge_user(snac *snac)
 2         srv_debug(1, xs_fmt("purge: %s %d", idx, gc));
 3     }
 4 
 5+    /* purge lists */
 6+    {
 7+        xs *spec = xs_fmt("%s/list/" "*.idx", snac->basedir);
 8+        xs *lol  = xs_glob(spec, 0, 0);
 9+        int c = 0;
10+        char *v;
11+
12+        while (xs_list_next(lol, &v, &c)) {
13+            int gc = index_gc(v);
14+            srv_debug(1, xs_fmt("purge: %s %d", v, gc));
15+        }
16+    }
17+
18     /* unrelated to purging, but it's a janitorial process, so what the hell */
19     verify_links(snac);
20 }