Lines Matching defs:log
7 #include "mail-transaction-log-view-private.h"
9 static struct mail_transaction_log *log;
22 void mail_transaction_logs_clean(struct mail_transaction_log *log ATTR_UNUSED)
26 int mail_transaction_log_find_file(struct mail_transaction_log *log,
33 for (file = log->files; file != NULL; file = file->next) {
77 file->log = log;
83 for (p = &log->files; *p != NULL; p = &(*p)->next) {
90 log->head = file;
141 log = i_new(struct mail_transaction_log, 1);
142 log->index = i_new(struct mail_index, 1);
143 log->index->log = log;
144 log->index->log_sync_locked = TRUE;
149 /* add an append record to the 3rd log file */
154 add_append_record(log->head, &append_rec);
156 view = mail_transaction_log_view_open(log);
158 test_assert(log->views == view &&
199 test_begin("log clear");
203 oldfile = log->files;
204 buffer_free(&log->files->buffer);
205 log->files = log->files->next;
207 test_assert(log->files->hdr.file_seq == 2);
216 test_begin("missing log handing");
220 test_begin("closed log handling");
221 view->log = NULL;
223 view->log = log;
227 i_free(log->index);
228 while (log->files != NULL) {
229 oldfile = log->files;
230 buffer_free(&log->files->buffer);
231 log->files = log->files->next;
234 i_free(log);