comparison src/lib-storage/index/dbox-multi/mdbox-storage.c @ 22301:d86a691543b4

dbox: Use mail_index_header.last_temp_file_scan instead of directory's atime This will be required for the following ITERINDEX change.
author Timo Sirainen <timo.sirainen@dovecot.fi>
date Wed, 28 Jun 2017 19:46:01 +0300
parents 5a81b1690625
children cb108f786fb4
comparison
equal deleted inserted replaced
22300:2c78da6b9590 22301:d86a691543b4
168 } 168 }
169 169
170 int mdbox_mailbox_open(struct mailbox *box) 170 int mdbox_mailbox_open(struct mailbox *box)
171 { 171 {
172 struct mdbox_mailbox *mbox = (struct mdbox_mailbox *)box; 172 struct mdbox_mailbox *mbox = (struct mdbox_mailbox *)box;
173 173 time_t path_ctime;
174 if (dbox_mailbox_check_existence(box) < 0) 174
175 return -1; 175 if (dbox_mailbox_check_existence(box, &path_ctime) < 0)
176 if (dbox_mailbox_open(box) < 0) 176 return -1;
177 if (dbox_mailbox_open(box, path_ctime) < 0)
177 return -1; 178 return -1;
178 179
179 mbox->ext_id = 180 mbox->ext_id =
180 mail_index_ext_register(mbox->box.index, "mdbox", 0, 181 mail_index_ext_register(mbox->box.index, "mdbox", 0,
181 sizeof(struct mdbox_mail_index_record), 182 sizeof(struct mdbox_mail_index_record),