Lines Matching defs:ft

204 	struct fts_transaction_context *ft = FTS_CONTEXT_REQUIRE(t);
241 if (ft->scores != NULL)
242 fts_scores_unref(&ft->scores);
243 ft->scores = fctx->scores;
244 ft->scores->refcount++;
288 struct fts_transaction_context *ft = FTS_CONTEXT_REQUIRE(ctx->transaction);
290 if (fctx == NULL && ft->failed) {
372 struct fts_transaction_context *ft = FTS_CONTEXT_REQUIRE(ctx->transaction);
379 ft->failed = TRUE;
396 if (ft->failed)
415 struct fts_transaction_context *ft = FTS_CONTEXT_REQUIRE(_mail->transaction);
418 if (field != MAIL_FETCH_SEARCH_RELEVANCY || ft->scores == NULL)
421 scores = array_bsearch(&ft->scores->score_map, &_mail->uid,
469 struct fts_transaction_context *ft = FTS_CONTEXT_REQUIRE(_mail->transaction);
476 ft->precached = TRUE;
477 ft->next_index_seq = last_seq + 1;
486 struct fts_transaction_context *ft = FTS_CONTEXT_REQUIRE(_mail->transaction);
489 if (ft->failed)
492 if (!ft->precached) {
494 ft->failed = TRUE;
498 if (ft->next_index_seq < _mail->seq) {
504 ft->next_index_seq,
506 &ft->precache_extra_count) < 0) {
507 ft->failed = TRUE;
512 if (ft->next_index_seq == _mail->seq) {
516 ft->failed = TRUE;
518 ft->next_index_seq = _mail->seq + 1;
526 struct fts_transaction_context *ft = FTS_CONTEXT_REQUIRE(_mail->transaction);
530 if (ft->highest_virtual_uid < _mail->uid)
531 ft->highest_virtual_uid = _mail->uid;
564 struct fts_transaction_context *ft;
566 ft = i_new(struct fts_transaction_context, 1);
569 MODULE_CONTEXT_SET(t, fts_storage_module, ft);
575 struct fts_transaction_context *ft = FTS_CONTEXT_REQUIRE(t);
577 int ret = ft->failed ? -1 : 0;
579 if (ft->failed)
582 if (ft->precached) {
590 } else if (ft->highest_virtual_uid > 0) {
591 if (fts_index_set_last_uid(t->box, ft->highest_virtual_uid) < 0) {
596 if (ft->scores != NULL)
597 fts_scores_unref(&ft->scores);
598 if (ft->precache_extra_count > 0) {
601 ft->precache_extra_count, t->box->vname, *error_r);
604 ft->precache_extra_count, t->box->vname);
607 i_free(ft);
657 struct fts_transaction_context *ft = FTS_CONTEXT_REQUIRE(t);
664 autoindex = ft->mails_saved && !fbox->fts_mailbox_excluded &&
741 struct fts_transaction_context *ft = FTS_CONTEXT_REQUIRE(ctx->transaction);
746 ft->mails_saved = TRUE;
752 struct fts_transaction_context *ft = FTS_CONTEXT_REQUIRE(ctx->transaction);
757 ft->mails_saved = TRUE;