fix fdatasync wrong call, tks to andres
authorCédric Villemain <cedric.villemain.debian@gmail.com>
Wed, 9 Dec 2009 23:52:42 +0000 (00:52 +0100)
committerCédric Villemain <cedric.villemain.debian@gmail.com>
Wed, 9 Dec 2009 23:52:42 +0000 (00:52 +0100)
pgfincore.c

index 2ae36fde3699a4944db84f93ea4c1bfb343c42a1..9a3100e13502f0c7bb6e416e1f9cb0381c5111ef 100644 (file)
@@ -305,7 +305,6 @@ pgfadv_willneed_file(char *filename, FunctionCallInfo fcinfo) {
     goto error;
   }
 
-  fdatasync(fd);
   posix_fadvise(fd, 0, 0, POSIX_FADV_WILLNEED);
   values[0] = CStringGetTextDatum(filename);
   values[1] = Int64GetDatum(st.st_size/pageSize);