comparison src/lib-storage/index/maildir/maildir-sync.c @ 5564:47274663a71c HEAD

Call sync_notify() once at the end of syncing. Allow accessing mails even while syncing, as long as it's safe to do so.
author Timo Sirainen <tss@iki.fi>
date Tue, 17 Apr 2007 18:09:10 +0300
parents 24b751bc0995
children 1c4fd25893bd
comparison
equal deleted inserted replaced
5563:063b184597fa 5564:47274663a71c
1307 partial syncs */ 1307 partial syncs */
1308 mbox->syncing_commit = TRUE; 1308 mbox->syncing_commit = TRUE;
1309 if (maildir_sync_index_records(sync_ctx) < 0) 1309 if (maildir_sync_index_records(sync_ctx) < 0)
1310 ret = -1; 1310 ret = -1;
1311 mbox->syncing_commit = FALSE; 1311 mbox->syncing_commit = FALSE;
1312
1313 if (mbox->ibox.box.v.sync_notify != NULL)
1314 mbox->ibox.box.v.sync_notify(&mbox->ibox.box, 0, 0);
1312 } 1315 }
1313 1316
1314 if (mbox->dirty_cur_time != 0) 1317 if (mbox->dirty_cur_time != 0)
1315 mbox->last_dirty_flags |= MAILDIR_DIRTY_CUR; 1318 mbox->last_dirty_flags |= MAILDIR_DIRTY_CUR;
1316 1319