summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordefault <nobody@localhost>2023-05-01 08:32:48 +0200
committerdefault <nobody@localhost>2023-05-01 08:32:48 +0200
commit84902d8dcca0ff06e55698432cca69e542be685f (patch)
tree87c2d2a75ac15cf95fed5e5755bb8c40cd26f46d
parenta7d4513f776f831c36058dfb9b86e80438d16d26 (diff)
Purge / gc the instance timeline index.
-rw-r--r--data.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/data.c b/data.c
index ee36103..50d88eb 100644
--- a/data.c
+++ b/data.c
@@ -2051,7 +2051,11 @@ void purge_server(void)
xs *ib_dir = xs_fmt("%s/inbox", srv_basedir);
_purge_dir(ib_dir, 7);
- srv_debug(1, xs_fmt("purge: global (obj: %d, idx: %d)", cnt, icnt));
+ /* purge the instance timeline */
+ xs *itl_fn = xs_fmt("%s/public.idx", srv_basedir);
+ int itl_gc = index_gc(itl_fn);
+
+ srv_debug(1, xs_fmt("purge: global (obj: %d, idx: %d, itl: %d)", cnt, icnt, itl_gc));
}