snac2

Fork of https://codeberg.org/grunfink/snac2
git clone https://git.inz.fi/snac2
Log | Files | Refs | README | LICENSE

commit 84902d8dcca0ff06e55698432cca69e542be685f
parent a7d4513f776f831c36058dfb9b86e80438d16d26
Author: default <nobody@localhost>
Date:   Mon,  1 May 2023 08:32:48 +0200

Purge / gc the instance timeline index.

Diffstat:
Mdata.c | 6+++++-
1 file changed, 5 insertions(+), 1 deletion(-)

diff --git 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)); }