diff options
| author | 2023-05-01 08:32:48 +0200 | |
|---|---|---|
| committer | 2023-05-01 08:32:48 +0200 | |
| commit | 84902d8dcca0ff06e55698432cca69e542be685f (patch) | |
| tree | 87c2d2a75ac15cf95fed5e5755bb8c40cd26f46d /data.c | |
| parent | In /api/v1/statuses, get the object from the storage instead of from the time... (diff) | |
| download | snac2-84902d8dcca0ff06e55698432cca69e542be685f.tar.gz snac2-84902d8dcca0ff06e55698432cca69e542be685f.tar.xz snac2-84902d8dcca0ff06e55698432cca69e542be685f.zip | |
Purge / gc the instance timeline index.
Diffstat (limited to 'data.c')
| -rw-r--r-- | data.c | 6 |
1 files changed, 5 insertions, 1 deletions
| @@ -2051,7 +2051,11 @@ void purge_server(void) | |||
| 2051 | xs *ib_dir = xs_fmt("%s/inbox", srv_basedir); | 2051 | xs *ib_dir = xs_fmt("%s/inbox", srv_basedir); |
| 2052 | _purge_dir(ib_dir, 7); | 2052 | _purge_dir(ib_dir, 7); |
| 2053 | 2053 | ||
| 2054 | srv_debug(1, xs_fmt("purge: global (obj: %d, idx: %d)", cnt, icnt)); | 2054 | /* purge the instance timeline */ |
| 2055 | xs *itl_fn = xs_fmt("%s/public.idx", srv_basedir); | ||
| 2056 | int itl_gc = index_gc(itl_fn); | ||
| 2057 | |||
| 2058 | srv_debug(1, xs_fmt("purge: global (obj: %d, idx: %d, itl: %d)", cnt, icnt, itl_gc)); | ||
| 2055 | } | 2059 | } |
| 2056 | 2060 | ||
| 2057 | 2061 | ||