Searched refs:sync_offset (Results 1 - 9 of 9) sorted by relevance

/dovecot/src/lib-index/
H A Dmail-transaction-log-append.c46 if (ftruncate(file->fd, file->sync_offset) < 0) {
56 i_assert(file->buffer_offset + file->buffer->used == file->sync_offset);
58 file->sync_offset = file->buffer_offset + file->buffer->used;
75 file->sync_offset = file->buffer_offset + file->buffer->used;
88 file->sync_offset + ctx->output->used ==
108 file->buffer->used == file->sync_offset);
112 file->sync_offset += ctx->output->used;
138 } else if (file->max_tail_offset == file->sync_offset) {
181 if (file->sync_offset < file->last_size) {
186 file->sync_offset
[all...]
H A Dmail-transaction-log-file.c77 "(sync_offset=%"PRIuUOFF_T")",
79 t_strdup_vprintf(fmt, va), file->sync_offset);
148 sync_offset from it so we don't have to read the whole log
157 file->sync_offset = file->hdr.hdr_size;
161 file->sync_offset = head_offset;
166 file->sync_offset = file->hdr.hdr_size;
172 file->sync_offset = file->hdr.hdr_size;
176 file->sync_offset = modseq_hdr->log_offset;
195 file->sync_offset = file->hdr.hdr_size;
214 file->sync_offset
[all...]
H A Dtest-mail-transaction-log-file.c283 modseq_next_offset[modseq] = file->sync_offset;
293 modseq_alt_next_offset[modseq] = file->sync_offset;
311 /* sync_highest_modseq fast path - it skips to sync_offset instead of
314 test_assert(next_offset == file->sync_offset);
317 modseq_next_offset[max_modseq] = file->sync_offset;
349 /* sync_offset fast path */
350 test_assert(mail_transaction_log_file_get_highest_modseq_at(file, file->sync_offset, &modseq, &error) == 0);
396 test_assert(next_offset == file->sync_offset);
H A Dmail-transaction-log-view.c310 min_file_offset > view->head->sync_offset) {
314 ") > sync_offset (%"PRIuUOFF_T")", min_file_seq,
315 min_file_offset, view->head->sync_offset);
323 max_file_offset <= view->head->sync_offset);
327 min_file_offset <= view->head->sync_offset);
335 view->max_file_offset = I_MIN(max_file_offset, view->head->sync_offset);
342 i_assert(view->cur_offset <= view->cur->sync_offset);
398 view->max_file_offset = view->head->sync_offset;
475 cur_offset == cur->sync_offset) {
479 } else if (cur_offset == cur->sync_offset) {
[all...]
H A Dmail-transaction-log.c248 if (file->sync_offset > log->index->optimization_set.log.max_size) {
252 if (file->sync_offset < log->index->optimization_set.log.min_size) {
555 /* update sync_offset */
556 if (mail_transaction_log_file_map(log->head, log->head->sync_offset,
560 "sync_offset=%"PRIuUOFF_T" after locking: %s",
561 log->head->filepath, log->head->sync_offset, reason);
569 *file_offset_r = log->head->sync_offset;
586 *file_offset_r = log->head->sync_offset;
H A Dmail-transaction-log-private.h49 uoff_t sync_offset; member in struct:mail_transaction_log_file
50 /* highest modseq at sync_offset */
59 sync_offset is less than this. */
H A Dtest-mail-transaction-log-append.c61 test_assert(file->sync_offset == file->buffer_offset + file->buffer->used);
151 file->sync_offset = 1;
H A Dtest-mail-transaction-log-view.c74 file->hdr.hdr_size = file->sync_offset = sizeof(file->hdr);
124 file->sync_offset += size;
H A Dmail-index-transaction.c168 i_assert(file->sync_offset >= file->buffer_offset);

Completed in 205 milliseconds