Lines Matching refs:log
7 #include "mail-transaction-log-private.h"
35 MAIL_TRANSACTION_LOG_HDR_VERSION(&ctx->log->head->hdr));
42 struct mail_transaction_log_file *file = ctx->log->head;
44 /* first we need to truncate this latest write so that log syncing
47 mail_index_file_set_syscall_error(ctx->log->index,
52 if (mail_index_move_to_memory(ctx->log->index) < 0)
64 struct mail_transaction_log_file *file = ctx->log->head;
81 mail_index_file_set_syscall_error(ctx->log->index,
92 file->log->index->fsync_mode != FSYNC_MODE_NEVER) ||
93 file->log->index->fsync_mode == FSYNC_MODE_ALWAYS) {
95 mail_index_file_set_syscall_error(ctx->log->index,
119 struct mail_transaction_log_file *file = ctx->log->head;
129 log anyway. */
147 /* FIXME: when we remove exclusive log locking, we
178 struct mail_transaction_log_file *file = ctx->log->head;
182 /* there is some garbage at the end of the transaction log
189 mail_index_file_set_syscall_error(ctx->log->index,
225 if (mail_transaction_log_lock_head(index->log, "appending") < 0)
229 ctx->log = index->log;
244 struct mail_index *index = ctx->log->index;
251 mail_transaction_log_file_unlock(index->log->head, "appending");