index-transaction.c revision 9f19a50d5966643c4d1c5ca06868ac2ad31bc4d5
/* Copyright (c) 2003-2009 Dovecot authors, see the included COPYING file */
#include "lib.h"
#include "array.h"
#include "index-storage.h"
#include "index-mail.h"
static void index_transaction_free(struct index_transaction_context *t)
{
i_free(t);
}
static int
{
struct index_transaction_context *it =
int ret = 0;
ret = -1;
}
}
if (ret < 0)
else {
ret = -1;
}
}
return ret;
}
static void index_transaction_index_rollback(struct mail_index_transaction *t)
{
struct index_mailbox *ibox =
}
{
if ((flags & MAILBOX_TRANSACTION_FLAG_HIDE) != 0)
if ((flags & MAILBOX_TRANSACTION_FLAG_EXTERNAL) != 0)
if ((flags & MAILBOX_TRANSACTION_FLAG_REFRESH) != 0)
sizeof(void *), 5);
/* set up after mail_cache_get_transaction(), so that we'll still
have the cache_trans available in _index_commit() */
}
struct mailbox_transaction_context *
{
struct index_transaction_context *it;
return &it->mailbox_ctx;
}
struct mail_transaction_commit_changes *changes_r)
{
struct index_transaction_context *t =
(struct index_transaction_context *)_t;
int ret;
return ret;
}
{
struct index_transaction_context *t =
(struct index_transaction_context *)_t;
}
{
struct index_transaction_context *t =
(struct index_transaction_context *)_t;
}