Kaynağa Gözat

libraster: activate fsync before closing data files

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@74457 15284696-431f-4ddb-bdfa-cd5b030d7da7
Markus Metz 6 yıl önce
ebeveyn
işleme
7f8423ed06
1 değiştirilmiş dosya ile 1 ekleme ve 1 silme
  1. 1 1
      lib/raster/close.c

+ 1 - 1
lib/raster/close.c

@@ -41,7 +41,7 @@ static int close_new(int, int);
 
 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));
 		}