[GRASS-SVN] r74457 - grass/trunk/lib/raster

svn_grass at osgeo.org svn_grass at osgeo.org
Fri May 3 00:07:46 PDT 2019


Author: mmetz
Date: 2019-05-03 00:07:46 -0700 (Fri, 03 May 2019)
New Revision: 74457

Modified:
   grass/trunk/lib/raster/close.c
Log:
libraster: activate fsync before closing data files

Modified: grass/trunk/lib/raster/close.c
===================================================================
--- grass/trunk/lib/raster/close.c	2019-05-02 19:33:09 UTC (rev 74456)
+++ grass/trunk/lib/raster/close.c	2019-05-03 07:07:46 UTC (rev 74457)
@@ -41,7 +41,7 @@
 
 static void sync_and_close(int fd, char *element, char *name)
 {
-    if (0 && fsync(fd)) {
+    if (fsync(fd)) {
 	G_warning(_("Unable to flush %s file for raster map %s: %s"),
 	            element, name, strerror(errno));
 		}



More information about the grass-commit mailing list