Lines Matching defs:sync_trans
16 struct mail_index_transaction *sync_trans, *ext_trans;
40 mail_index_expunge(ctx->sync_trans, uid);
50 mail_index_expunge_guid(ctx->sync_trans, e[i].uid,
62 mail_index_update_flags_range(ctx->sync_trans,
68 mail_index_update_flags_range(ctx->sync_trans,
100 mail_index_update_keywords(ctx->sync_trans, uid,
118 mail_index_update_keywords(ctx->sync_trans, uid,
163 mail_index_update_flags(ctx->sync_trans, rec->uid,
171 struct mail_index_transaction *sync_trans = ctx->sync_trans;
207 keyword_count = !array_is_created(&sync_trans->keyword_updates) ? 0 :
208 array_count(&sync_trans->keyword_updates);
211 if (array_is_created(&sync_trans->expunges)) {
212 mail_index_transaction_sort_expunges(sync_trans);
214 synclist->array = (void *)&sync_trans->expunges;
217 if (array_is_created(&sync_trans->updates)) {
219 synclist->array = (void *)&sync_trans->updates;
223 array_idx(&sync_trans->keyword_updates, 0);
440 ctx->sync_trans = mail_index_transaction_begin(sync_view,
517 return array_is_created(&ctx->sync_trans->expunges) &&
518 array_count(&ctx->sync_trans->expunges) > 0;
653 struct mail_index_transaction *sync_trans = ctx->sync_trans;
695 if (sync_list[i].array == (void *)&sync_trans->expunges) {
698 } else if (sync_list[i].array == (void *)&sync_trans->updates) {
767 mail_index_transaction_rollback(&ctx->sync_trans);