Lines Matching refs:ext_id

728 				  uint32_t ext_id, uint16_t new_record_size)
735 array = array_idx_modifiable(&t->ext_rec_updates, ext_id);
753 void mail_index_ext_resize(struct mail_index_transaction *t, uint32_t ext_id,
764 rext = array_idx(&t->view->index->extensions, ext_id);
766 /* get ext_id from transaction's map if it's there */
767 if (!mail_index_map_get_ext_idx(t->view->map, ext_id, &intro.ext_id)) {
769 intro.ext_id = (uint32_t)-1;
775 ext = array_idx(&t->view->map->extensions, intro.ext_id);
789 if (ext_id < resizes_count && resizes[ext_id].name_size != 0) {
791 old_record_size = resizes[ext_id].record_size;
802 mail_index_ext_rec_updates_resize(t, ext_id, record_size);
808 i_array_init(&t->ext_resizes, ext_id + 2);
821 array_idx_set(&t->ext_resizes, ext_id, &intro);
825 uint32_t ext_id, uint32_t hdr_size)
827 mail_index_ext_resize(t, ext_id, hdr_size, (uint16_t)-1, (uint16_t)-1);
830 void mail_index_ext_reset(struct mail_index_transaction *t, uint32_t ext_id,
841 mail_index_ext_set_reset_id(t, ext_id, reset_id);
844 i_array_init(&t->ext_resets, ext_id + 2);
845 array_idx_set(&t->ext_resets, ext_id, &reset);
849 void mail_index_ext_reset_inc(struct mail_index_transaction *t, uint32_t ext_id,
854 mail_index_ext_reset(t, ext_id, (uint32_t)-1, clear_data);
857 i_array_init(&t->ext_reset_atomic, ext_id + 2);
858 array_idx_set(&t->ext_reset_atomic, ext_id, &expected_reset_id);
911 mail_index_ext_update_reset(ARRAY_TYPE(seq_array_array) *arr, uint32_t ext_id)
913 if (array_is_created(arr) && ext_id < array_count(arr)) {
917 array = array_idx_modifiable(arr, ext_id);
924 mail_index_ext_reset_changes(struct mail_index_transaction *t, uint32_t ext_id)
926 mail_index_ext_update_reset(&t->ext_rec_updates, ext_id);
927 mail_index_ext_update_reset(&t->ext_rec_atomics, ext_id);
929 ext_id < array_count(&t->ext_hdr_updates)) {
933 hdr = array_idx_modifiable(&t->ext_hdr_updates, ext_id);
941 ext_id < array_count(&t->ext_resets)) {
943 array_idx_clear(&t->ext_resets, ext_id);
946 ext_id < array_count(&t->ext_resizes)) {
948 array_idx_clear(&t->ext_resizes, ext_id);
955 uint32_t ext_id, uint32_t reset_id)
961 i_array_init(&t->ext_reset_ids, ext_id + 2);
962 reset_id_p = array_idx_get_space(&t->ext_reset_ids, ext_id);
967 mail_index_ext_reset_changes(t, ext_id);
972 uint32_t ext_id, uint32_t reset_id)
974 mail_index_ext_using_reset_id(t, ext_id, reset_id);
976 mail_index_ext_reset_changes(t, ext_id);
980 uint32_t ext_id, size_t offset,
990 i_array_init(&t->ext_hdr_updates, ext_id + 2);
992 hdr = array_idx_get_space(&t->ext_hdr_updates, ext_id);
1007 uint32_t ext_id, const void *data, void *old_data_r)
1019 i_assert(ext_id < array_count(&index->extensions));
1029 if (ext_id < count && intro[ext_id].name_size != 0) {
1031 record_size = intro[ext_id].record_size;
1033 rext = array_idx(&index->extensions, ext_id);
1039 i_array_init(&t->ext_rec_updates, ext_id + 2);
1040 array = array_idx_get_space(&t->ext_rec_updates, ext_id);
1052 uint32_t seq, uint32_t ext_id, int diff)
1060 i_assert(ext_id < array_count(&t->view->index->extensions));
1068 i_array_init(&t->ext_rec_atomics, ext_id + 2);
1069 array = array_idx_get_space(&t->ext_rec_atomics, ext_id);