Mercurial > dovecot > core-2.2
diff src/lib-storage/index/dbox-common/dbox-file.c @ 11216:de0ed7bea201 HEAD
mdbox: Avoid rebuilding storage if another process already did it.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Thu, 29 Apr 2010 18:43:02 +0300 |
parents | abf262317b2c |
children | 88d7a36c7fa5 |
line wrap: on
line diff
--- a/src/lib-storage/index/dbox-common/dbox-file.c Thu Apr 29 17:52:40 2010 +0300 +++ b/src/lib-storage/index/dbox-common/dbox-file.c Thu Apr 29 18:43:02 2010 +0300 @@ -54,14 +54,14 @@ { va_list args; - file->storage->files_corrupted = TRUE; - va_start(args, reason); mail_storage_set_critical(&file->storage->storage, "Corrupted dbox file %s (around offset=%"PRIuUOFF_T"): %s", file->cur_path, file->input == NULL ? 0 : file->input->v_offset, t_strdup_vprintf(reason, args)); va_end(args); + + file->storage->v.set_file_corrupted(file); } void dbox_file_init(struct dbox_file *file)