svn commit: samba r15404 - in branches/SAMBA_3_0/source/smbd: .

jra at samba.org jra at samba.org
Wed May 3 03:42:58 GMT 2006


Author: jra
Date: 2006-05-03 03:42:56 +0000 (Wed, 03 May 2006)
New Revision: 15404

WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=15404

Log:
Check for WRITE_THOUGH before calling lp_ fn. I hate
extra fn calls.
Jeremy.

Modified:
   branches/SAMBA_3_0/source/smbd/open.c


Changeset:
Modified: branches/SAMBA_3_0/source/smbd/open.c
===================================================================
--- branches/SAMBA_3_0/source/smbd/open.c	2006-05-03 03:42:45 UTC (rev 15403)
+++ branches/SAMBA_3_0/source/smbd/open.c	2006-05-03 03:42:56 UTC (rev 15404)
@@ -1308,7 +1308,7 @@
 	 */
 
 #if defined(O_SYNC)
-	if (lp_strict_sync(SNUM(conn)) && (create_options & FILE_WRITE_THROUGH)) {
+	if ((create_options & FILE_WRITE_THROUGH) && lp_strict_sync(SNUM(conn))) {
 		flags2 |= O_SYNC;
 	}
 #endif /* O_SYNC */



More information about the samba-cvs mailing list