Lines Matching refs:build_ctx
78 struct squat_uidlist_build_context *build_ctx;
896 int squat_uidlist_rebuild_init(struct squat_uidlist_build_context *build_ctx,
905 if (build_ctx->build_hdr.link_count == 0)
909 if (build_ctx->build_hdr.link_count <
910 build_ctx->build_hdr.count*2/3)
917 if (squat_uidlist_read_to_memory(build_ctx->uidlist) < 0)
920 temp_path = t_strconcat(build_ctx->uidlist->path, ".tmp", NULL);
921 fd = squat_trie_create_fd(build_ctx->uidlist->trie, temp_path, O_TRUNC);
926 ctx->uidlist = build_ctx->uidlist;
927 ctx->build_ctx = build_ctx;
938 build_ctx->build_hdr.count / UIDLIST_BLOCK_LIST_COUNT);
940 build_ctx->build_hdr.count / UIDLIST_BLOCK_LIST_COUNT);
1050 ctx->build_ctx->build_hdr.indexid =
1052 ctx->build_ctx->build_hdr.count = ctx->new_count;
1053 ctx->build_ctx->build_hdr.link_count = 0;
1054 uidlist_write_block_list_and_header(ctx->build_ctx, ctx->output,
1059 o_stream_nsend(ctx->output, &ctx->build_ctx->build_hdr,
1060 sizeof(ctx->build_ctx->build_hdr));
1062 ctx->build_ctx->build_hdr.used_file_size);
1075 ctx->build_ctx->need_reopen = TRUE;