view src/lib-storage/list/mailbox-list-index-storage.h @ 22604:98d99bf6511e

lib-storage: Make sure mailbox list notification flush sees latest changes. This is mainly useful with imaptest test scripts to make sure they're seeing the changes done by the other session, without assuming that inotify will always notify about the change before NOOP is run (it doesn't). Do this only if mailbox_idle_check_interval>0, so it's not run when periodic stat()s are wanted to be avoided.
author Timo Sirainen <timo.sirainen@dovecot.fi>
date Mon, 11 Sep 2017 13:48:17 +0300
parents 445b89dc8246
children 2d409988e1c8
line wrap: on
line source

#ifndef MAILBOX_LIST_INDEX_STORAGE_H
#define MAILBOX_LIST_INDEX_STORAGE_H

#include "mail-storage-private.h"

#define INDEX_LIST_STORAGE_CONTEXT(obj) \
	MODULE_CONTEXT(obj, index_list_storage_module)

struct index_list_mailbox {
	union mailbox_module_context module_ctx;

	uint32_t pre_sync_log_file_seq;
	uoff_t pre_sync_log_file_head_offset;
};

extern MODULE_CONTEXT_DEFINE(index_list_storage_module,
			     &mail_storage_module_register);

#endif