commit 84902d8
default
·
2023-05-01 06:32:48 +0000 UTC
parent a7d4513
Purge / gc the instance timeline index.
1 files changed,
+5,
-1
M
data.c
M
data.c
+5,
-1
1@@ -2051,7 +2051,11 @@ void purge_server(void)
2 xs *ib_dir = xs_fmt("%s/inbox", srv_basedir);
3 _purge_dir(ib_dir, 7);
4
5- srv_debug(1, xs_fmt("purge: global (obj: %d, idx: %d)", cnt, icnt));
6+ /* purge the instance timeline */
7+ xs *itl_fn = xs_fmt("%s/public.idx", srv_basedir);
8+ int itl_gc = index_gc(itl_fn);
9+
10+ srv_debug(1, xs_fmt("purge: global (obj: %d, idx: %d, itl: %d)", cnt, icnt, itl_gc));
11 }
12
13