Mercurial > dovecot > original-hg > dovecot-1.2
changeset 6715:5f5c9095633c HEAD
Use fdatasync() instead of fsync(), we don't care about mtimes.
author | Timo Sirainen <tss@iki.fi> |
---|---|
date | Wed, 07 Nov 2007 00:17:34 +0200 |
parents | 700555e06849 |
children | 35bebea1211b |
files | src/lib-index/mail-index-write.c |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/src/lib-index/mail-index-write.c Tue Nov 06 23:56:22 2007 +0200 +++ b/src/lib-index/mail-index-write.c Wed Nov 07 00:17:34 2007 +0200 @@ -42,8 +42,8 @@ if (ret < 0) mail_index_file_set_syscall_error(index, path, "write_full()"); - if (ret == 0 && !index->fsync_disable && fsync(fd) < 0) { - mail_index_file_set_syscall_error(index, path, "fsync()"); + if (ret == 0 && !index->fsync_disable && fdatasync(fd) < 0) { + mail_index_file_set_syscall_error(index, path, "fdatasync()"); ret = -1; }