Lines Matching defs:log

6 #define MAIL_TRANSACTION_LOG_SUFFIX ".log"
34 uint64_t initial_modseq; /* v1.1+ (note: log's major/minor version) */
68 /* since we'll expunge mails based on data read from transaction log,
69 try to avoid the possibility of corrupted transaction log expunging
71 flag. if it's not present, assume corrupted log. */
183 struct mail_transaction_log *log;
204 void mail_transaction_log_free(struct mail_transaction_log **log);
206 /* Open the transaction log. Returns 1 if ok, 0 if file doesn't exist or it's
208 int mail_transaction_log_open(struct mail_transaction_log *log);
209 /* Create, or recreate, the transaction log. Returns 0 if ok, -1 if error. */
210 int mail_transaction_log_create(struct mail_transaction_log *log, bool reset);
211 /* Close all the open transactions log files. */
212 void mail_transaction_log_close(struct mail_transaction_log *log);
215 void mail_transaction_log_indexid_changed(struct mail_transaction_log *log);
218 Since the log is rotated only when mailbox is fully synced, the sequence
222 void mail_transaction_log_get_mailbox_sync_pos(struct mail_transaction_log *log,
226 log file's sequence. The offset written automatically to the log when
228 void mail_transaction_log_set_mailbox_sync_pos(struct mail_transaction_log *log,
233 mail_transaction_log_view_open(struct mail_transaction_log *log);
243 /* Scan through all of the log files that we can find.
246 /* Clear the view. If oldest_file_seq > 0, keep it and newer log files
274 /* Marks the log file in current position to be corrupted. */
290 /* Lock transaction log for index synchronization. Log cannot be read or
292 int mail_transaction_log_sync_lock(struct mail_transaction_log *log,
295 void mail_transaction_log_sync_unlock(struct mail_transaction_log *log,
297 /* Returns the current head. Works only when log is locked. */
298 void mail_transaction_log_get_head(struct mail_transaction_log *log,
301 void mail_transaction_log_get_tail(struct mail_transaction_log *log,
303 /* Returns TRUE if given seq/offset is current head log's rotate point. */
304 bool mail_transaction_log_is_head_prev(struct mail_transaction_log *log,
307 /* Move currently opened log head file to memory (called by
309 int mail_transaction_log_move_to_memory(struct mail_transaction_log *log);
310 /* Unlink transaction log files */
311 int mail_transaction_log_unlink(struct mail_transaction_log *log);