diff options
| author | 2025-09-07 08:30:18 +0200 | |
|---|---|---|
| committer | 2025-09-07 08:30:18 +0200 | |
| commit | 7796bf39f0f1fe5bea4cde5a426bee872602ca84 (patch) | |
| tree | fa3377bb3b5fd6e789c711d46b657c2ebe68753b /data.c | |
| parent | Changed fsck debug level. (diff) | |
| download | penes-snac2-7796bf39f0f1fe5bea4cde5a426bee872602ca84.tar.gz penes-snac2-7796bf39f0f1fe5bea4cde5a426bee872602ca84.tar.xz penes-snac2-7796bf39f0f1fe5bea4cde5a426bee872602ca84.zip | |
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) | |||
| 3605 | } | 3605 | } |
| 3606 | 3606 | ||
| 3607 | 3607 | ||
| 3608 | void enqueue_fsck(void) | ||
| 3609 | /* enqueues an fsck */ | ||
| 3610 | { | ||
| 3611 | xs *qmsg = _new_qmsg("fsck", "", 0); | ||
| 3612 | const char *ntid = xs_dict_get(qmsg, "ntid"); | ||
| 3613 | xs *fn = xs_fmt("%s/queue/%s.json", srv_basedir, ntid); | ||
| 3614 | |||
| 3615 | qmsg = _enqueue_put(fn, qmsg); | ||
| 3616 | } | ||
| 3617 | |||
| 3618 | |||
| 3608 | int was_question_voted(snac *user, const char *id) | 3619 | int was_question_voted(snac *user, const char *id) |
| 3609 | /* returns true if the user voted in this poll */ | 3620 | /* returns true if the user voted in this poll */ |
| 3610 | { | 3621 | { |