mail-transaction-log-file.c revision dec85d9856c33f427a06dda01e0e50de0bc8fa7d
0e126d3cc0f2cb6141106843ebff09c67f75bff8Daniel Couto Vale/* Copyright (c) 2003-2007 Dovecot authors, see the included COPYING file */
3a2e1a2642136a6e39213b7bd635c81736df7d10Daniel Couto Vale#define MEMORY_LOG_NAME "(in-memory transaction log file)"
0e126d3cc0f2cb6141106843ebff09c67f75bff8Daniel Couto Valemail_transaction_log_file_set_corrupted(struct mail_transaction_log_file *file,
const char *fmt, ...)
indexid)) < 0) {
t_push();
t_pop();
struct mail_transaction_log_file *
const char *path)
return file;
struct mail_transaction_log_file **p;
if (*p == file) {
struct mail_transaction_log_file **p;
*p = file;
MAIL_INDEX_SYNC_HANDLER_HEAD) <= 0)
struct mail_transaction_log_file *
return NULL;
return file;
int ret;
if (ret > 0) {
if (ret < 0) {
int ret;
if (ret < 0) {
if (ret == 0) {
int ret;
if (ret > 0) {
if (ret < 0) {
bool ignore_estale)
struct mail_transaction_log_file *f;
int ret;
if (ret < 0) {
if (ret == 0) {
bool ignore_estale)
return TRUE;
return FALSE;
const char *path2;
bool rename_existing;
if (reset)
FALSE) > 0 &&
if (reset) {
if (ret < 0)
if (rename_existing) {
path2);
bool reset)
int fd;
bool check_existing)
bool ignore_estale;
int ret;
else if (check_existing &&
if (ret > 0) {
if (ret == 0) {
i == MAIL_INDEX_ESTALE_RETRY_COUNT) {
const unsigned int offset_pos =
sizeof(sync_offset));
unsigned int trans_size)
int ret;
sizeof(*hdr));
if (ret != 0)
const void *data;
if (trans_size == 0) {
trans_size) < 0)
trans_size = 0;
if (trans_size != 0) {
void *data;
if (ret > 0) {
if (ret == 0) {
void *data;
if (ret > 0)
if (ret < 0) {
int ret;
if (ret <= 0)
return ret;
return ret;
MADV_SEQUENTIAL) < 0) {
int ret;
end_offset) == 0)
if (ret > 0) {
if (ret <= 0)
return ret;
} while (ret == 0);
*file)