[SCM] Samba Shared Repository - branch master updated

Jeremy Allison jra at samba.org
Thu Jul 12 20:45:02 MDT 2012


The branch, master has been updated
       via  5a9ce8b Use HAVE_FSYNC, we bothered to test for it.
      from  bf650a1 s4:registry:regdiff: use existing talloc context for the event context

http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master


- Log -----------------------------------------------------------------
commit 5a9ce8b94acf201ddb3d8e34dd962955284f1c5f
Author: Jeremy Allison <jra at samba.org>
Date:   Thu Jul 12 17:20:51 2012 -0700

    Use HAVE_FSYNC, we bothered to test for it.
    
    Autobuild-User(master): Jeremy Allison <jra at samba.org>
    Autobuild-Date(master): Fri Jul 13 04:44:42 CEST 2012 on sn-devel-104

-----------------------------------------------------------------------

Summary of changes:
 source3/modules/vfs_aio_pthread.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)


Changeset truncated at 500 lines:

diff --git a/source3/modules/vfs_aio_pthread.c b/source3/modules/vfs_aio_pthread.c
index 2c6121d..ae5963b 100644
--- 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,


-- 
Samba Shared Repository


More information about the samba-cvs mailing list