index-transaction.c revision 7370fb9ff75b674f99059adf24502ee9ae7a47bc
/* Copyright (c) 2003-2011 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_context *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;
}
int index_transaction_commit(struct mailbox_transaction_context *t,
struct mail_transaction_commit_changes *changes_r)
{
int ret;
"transaction changes", 512);
t = NULL;
return ret;
}
void index_transaction_rollback(struct mailbox_transaction_context *t)
{
}
void index_transaction_set_max_modseq(struct mailbox_transaction_context *t,
{
}