git.samba.org
/
mat
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bf650a1
)
Use HAVE_FSYNC, we bothered to test for it.
author
Jeremy Allison
<jra@samba.org>
Fri, 13 Jul 2012 00:20:51 +0000
(17:20 -0700)
committer
Jeremy Allison
<jra@samba.org>
Fri, 13 Jul 2012 02:44:42 +0000
(
04:44
+0200)
Autobuild-User(master): Jeremy Allison <jra@samba.org>
Autobuild-Date(master): Fri Jul 13 04:44:42 CEST 2012 on sn-devel-104
source3/modules/vfs_aio_pthread.c
patch
|
blob
|
history
diff --git
a/source3/modules/vfs_aio_pthread.c
b/source3/modules/vfs_aio_pthread.c
index 2c6121dbe51349a28e1a76d19ca708e973a5581b..ae5963b7685ea2f7aed36ef59983da91ffe7ce93 100644
(file)
--- a/
source3/modules/vfs_aio_pthread.c
+++ b/
source3/modules/vfs_aio_pthread.c
@@
-119,6
+119,7
@@
static void aio_worker(void *private_data)
(const void *)pd->aiocb->aio_buf,
pd->aiocb->aio_nbytes);
}
+#if defined(HAVE_FSYNC)
if (pd->ret_size != -1 && pd->flush_write) {
/*
* Optimization - flush if requested.
@@
-127,6
+128,7
@@
static void aio_worker(void *private_data)
*/
(void)fsync(pd->aiocb->aio_fildes);
}
+#endif
} else {
pd->ret_size = sys_pread(pd->aiocb->aio_fildes,
(void *)pd->aiocb->aio_buf,