mirror of
https://codeberg.org/grunfink/snac2.git
synced 2024-11-15 01:55:03 +00:00
Purge / gc the instance timeline index.
This commit is contained in:
parent
a7d4513f77
commit
84902d8dcc
1 changed files with 5 additions and 1 deletions
6
data.c
6
data.c
|
@ -2051,7 +2051,11 @@ void purge_server(void)
|
||||||
xs *ib_dir = xs_fmt("%s/inbox", srv_basedir);
|
xs *ib_dir = xs_fmt("%s/inbox", srv_basedir);
|
||||||
_purge_dir(ib_dir, 7);
|
_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));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue