Lines Matching defs:log
7 #include "mail-transaction-log-view-private.h"
10 mail_transaction_log_view_open(struct mail_transaction_log *log)
15 view->log = log;
18 i_assert(view->log->head != NULL);
20 view->head = view->tail = view->log->head;
25 view->next = log->views;
26 log->views = view;
50 for (p = &view->log->views; *p != NULL; p = &(*p)->next) {
58 mail_transaction_logs_clean(view->log);
65 mail_transaction_log_get_file_seqs(struct mail_transaction_log *log)
70 if (log->files == NULL)
73 for (file = log->files; file != NULL; file = file->next)
92 if (view->log == NULL) {
93 /* transaction log is closed already. this log view shouldn't
100 /* index file doesn't exist yet. this transaction log should
102 if (view->log->files->hdr.prev_file_seq != 0) {
105 "Wanted log beginning, but found prev_file_seq=%u",
106 view->log->files->hdr.prev_file_seq);
110 min_file_seq = view->log->files->hdr.file_seq;
119 for (file = view->log->files; file != NULL; file = file->next) {
130 for (file = view->log->files; file != NULL; file = file->next) {
148 /* log file offset is probably corrupted in the index file. */
169 ret = mail_transaction_log_find_file(view->log, seq,
187 view->head == view->log->head) {
196 view->log->files;
204 mail_transaction_log_get_file_seqs(view->log), reason);
236 /* log file offset is probably corrupted in the index file. */
245 /* log file offset is probably corrupted in the index file. */
311 /* log file offset is probably corrupted in the index file. */
352 /* make sure .log.2 file is opened */
353 (void)mail_transaction_log_find_file(view->log, 1, FALSE, &file, &reason);
355 first = view->log->files;
358 for (file = view->log->files; file != NULL; file = file->next) {
376 mail_index_set_error(view->log->index,
377 "Failed to map transaction log %s for all-view: %s",
378 view->log->filepath, reason);
403 mail_index_set_error(view->log->index,
405 view->log->filepath, reason);
419 mail_transaction_log_find_file(view->log, oldest_file_seq, FALSE,
517 mail_transaction_log_file_set_corrupted(view->log->head, "%s",
757 /* prev_file_offset should point to beginning of previous log record.