Lines Matching defs:scan
9 #include "dsync-transaction-log-scan.h"
363 /* scan the view only up to end of the current view.
514 pool = pool_alloconly_create(MEMPOOL_GROWING"dsync transaction log scan",
541 dsync_transaction_log_scan_get_hash(struct dsync_transaction_log_scan *scan)
543 return scan->changes;
547 dsync_transaction_log_scan_get_attr_hash(struct dsync_transaction_log_scan *scan)
549 return scan->attr_changes;
553 dsync_transaction_log_scan_has_all_changes(struct dsync_transaction_log_scan *scan)
555 return scan->returned_all_changes;
559 dsync_transaction_log_scan_find_new_expunge(struct dsync_transaction_log_scan *scan,
570 if (scan->highest_wanted_uid < uid)
571 scan->highest_wanted_uid = uid;
573 log_view = mail_transaction_log_view_open(scan->view->index->log);
575 scan->last_log_seq,
576 scan->last_log_offset,
583 if (log_add_expunge_uid(scan, data, hdr, uid))
587 if (log_add_expunge_guid_uid(scan, data, hdr, uid))
596 hash_table_lookup(scan->changes, POINTER_CAST(uid));
601 struct dsync_transaction_log_scan *scan = *_scan;
605 hash_table_destroy(&scan->changes);
606 hash_table_destroy(&scan->attr_changes);
607 pool_unref(&scan->pool);