dovecot: Use fdatasync() instead of fsync(), we don't care about...
dovecot at dovecot.org
dovecot at dovecot.org
Wed Nov 7 00:17:38 EET 2007
details: http://hg.dovecot.org/dovecot/rev/5f5c9095633c
changeset: 6715:5f5c9095633c
user: Timo Sirainen <tss at iki.fi>
date: Wed Nov 07 00:17:34 2007 +0200
description:
Use fdatasync() instead of fsync(), we don't care about mtimes.
diffstat:
1 file changed, 2 insertions(+), 2 deletions(-)
src/lib-index/mail-index-write.c | 4 ++--
diffs (14 lines):
diff -r 700555e06849 -r 5f5c9095633c src/lib-index/mail-index-write.c
--- 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 @@ static int mail_index_recreate(struct ma
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;
}
More information about the dovecot-cvs
mailing list