summaryrefslogtreecommitdiff
path: root/data.c
diff options
context:
space:
mode:
authorGravatar grunfink2025-09-07 08:30:18 +0200
committerGravatar grunfink2025-09-07 08:30:18 +0200
commit7796bf39f0f1fe5bea4cde5a426bee872602ca84 (patch)
treefa3377bb3b5fd6e789c711d46b657c2ebe68753b /data.c
parentChanged fsck debug level. (diff)
downloadsnac2-7796bf39f0f1fe5bea4cde5a426bee872602ca84.tar.gz
snac2-7796bf39f0f1fe5bea4cde5a426bee872602ca84.tar.xz
snac2-7796bf39f0f1fe5bea4cde5a426bee872602ca84.zip
Always do a deferred fsck at startup.
Diffstat (limited to '')
-rw-r--r--data.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/data.c b/data.c
index 8f2c3cb..1533305 100644
--- a/data.c
+++ b/data.c
@@ -3605,6 +3605,17 @@ void enqueue_collect_outbox(snac *user, const char *actor_id)
3605} 3605}
3606 3606
3607 3607
3608void 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
3608int was_question_voted(snac *user, const char *id) 3619int 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{