Lines Matching defs:file
1 /* Copyright (c) 2009-2018 Dovecot authors, see the included COPYING file */
266 struct mail_transaction_log_file *file = index->log->head;
283 modseq_next_offset[modseq] = file->sync_offset;
293 modseq_alt_next_offset[modseq] = file->sync_offset;
309 test_assert(mail_transaction_log_file_get_modseq_next_offset(file, 1, &next_offset) == 0);
313 test_assert(mail_transaction_log_file_get_modseq_next_offset(file, max_modseq, &next_offset) == 0);
314 test_assert(next_offset == file->sync_offset);
317 modseq_next_offset[max_modseq] = file->sync_offset;
319 test_assert(mail_transaction_log_file_get_modseq_next_offset(file, 2, &next_offset) == 0);
322 test_assert(mail_transaction_log_file_get_modseq_next_offset(file, 2, &next_offset) == 0);
325 test_assert(mail_transaction_log_file_get_modseq_next_offset(file, 3, &next_offset) == 0);
328 test_assert(mail_transaction_log_file_get_modseq_next_offset(file, 2, &next_offset) == 0);
333 test_assert(mail_transaction_log_file_get_modseq_next_offset(file, modseq, &next_offset) == 0);
339 test_assert(mail_transaction_log_file_get_modseq_next_offset(file, modseq, &next_offset) == 0);
347 test_assert(mail_transaction_log_file_get_highest_modseq_at(file, modseq_next_offset[1], &modseq, &error) == 0);
350 test_assert(mail_transaction_log_file_get_highest_modseq_at(file, file->sync_offset, &modseq, &error) == 0);
355 test_assert(mail_transaction_log_file_get_highest_modseq_at(file, modseq_next_offset[modseq], &modseq_at, &error) == 0);
357 test_assert(mail_transaction_log_file_get_highest_modseq_at(file, modseq_alt_next_offset[modseq], &modseq_at, &error) == 0);
363 test_assert(mail_transaction_log_file_get_highest_modseq_at(file, modseq_next_offset[modseq], &modseq_at, &error) == 0);
378 struct mail_transaction_log_file *file = index->log->head;
390 file->sync_highest_modseq = 3;
394 test_assert(mail_transaction_log_file_get_modseq_next_offset(file, 2, &next_offset) == 0);
396 test_assert(next_offset == file->sync_offset);