diff options
| author | grunfink <grunfink@comam.es> | 2025-09-07 08:30:18 +0200 |
|---|---|---|
| committer | grunfink <grunfink@comam.es> | 2025-09-07 08:30:18 +0200 |
| commit | 7796bf39f0f1fe5bea4cde5a426bee872602ca84 (patch) | |
| tree | fa3377bb3b5fd6e789c711d46b657c2ebe68753b /data.c | |
| parent | ef701e8bb4c404343bf25cc713e660c423516345 (diff) | |
Always do a deferred fsck at startup.
Diffstat (limited to 'data.c')
| -rw-r--r-- | data.c | 11 |
1 files changed, 11 insertions, 0 deletions
@@ -3605,6 +3605,17 @@ void enqueue_collect_outbox(snac *user, const char *actor_id) } +void enqueue_fsck(void) +/* enqueues an fsck */ +{ + xs *qmsg = _new_qmsg("fsck", "", 0); + const char *ntid = xs_dict_get(qmsg, "ntid"); + xs *fn = xs_fmt("%s/queue/%s.json", srv_basedir, ntid); + + qmsg = _enqueue_put(fn, qmsg); +} + + int was_question_voted(snac *user, const char *id) /* returns true if the user voted in this poll */ { |