mail-transaction-log-private.h revision 43d32cbe60fdaef2699d99f1ca259053e9350411
285N/A/* Synchronization can take a while sometimes, especially when copying lots of 285N/A/* Rotate when log is older than ROTATE_TIME and larger than MIN_SIZE */ 285N/A/* If log is larger than MAX_SIZE, rotate regardless of the time */ 285N/A/* Delete .log.2 files older than this many seconds */ 285N/A /* refcount=0 is a valid state. files start that way, and they're 285N/A freed only when mail_transaction_logs_clean() is called. */ 285N/A /* points to the next uncommitted transaction. usually same as EOF. */ 285N/A /* saved_tail_offset is the offset that was last written to transaction 285N/A log. max_tail_offset is what should be written to the log the next 285N/A time a transaction is written. transaction log handling may update 285N/A max_tail_offset automatically by making it skip external transactions 285N/A after the last saved offset (to avoid re-reading them unneededly). */ 285N/A /* files is a linked list of all the opened log files. the list is 285N/A sorted by the log file sequence, so that transaction views can use 285N/A them easily. head contains a pointer to the newest log file. */ 285N/A /* open_file is used temporarily while opening the log file. 285N/A if _open() failed, it's left there for _create(). */ 285N/A/* Returns 1 if ok, 0 if file is corrupted or offset range is invalid,