index-transaction.c revision 72898747f93d746d6d110bec483a86c5fe3b4698
/* Copyright (C) 2003 Timo Sirainen */
#include "lib.h"
#include "array.h"
#include "index-storage.h"
#include "index-mail.h"
void index_transaction_init(struct index_transaction_context *t,
struct index_mailbox *ibox)
{
sizeof(void *), 5);
}
static void index_transaction_free(struct index_transaction_context *t)
{
i_free(t);
}
int index_transaction_finish_commit(struct index_transaction_context *t,
{
int ret;
if (ret < 0)
else {
if (*log_file_seq_r != 0) {
}
}
return ret;
}
void index_transaction_finish_rollback(struct index_transaction_context *t)
{
}
struct mailbox_transaction_context *
{
struct mail_index_transaction *t;
struct index_transaction_context *it;
(flags & MAILBOX_TRANSACTION_FLAG_HIDE) != 0,
(flags & MAILBOX_TRANSACTION_FLAG_EXTERNAL) != 0);
it = MAIL_STORAGE_TRANSACTION(t);
i_panic("mail storage transaction context mising for type %s",
}
return &it->mailbox_ctx;
}
enum mailbox_sync_flags flags)
{
struct index_transaction_context *t =
(struct index_transaction_context *)_t;
t->commit_flags = flags;
}
{
struct index_transaction_context *t =
(struct index_transaction_context *)_t;
}