8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e9a3833 commit 9dd6c46Copy full SHA for 9dd6c46
src/port/copydir.c
@@ -11,7 +11,7 @@
11
* as a service.
12
*
13
* IDENTIFICATION
14
- * $PostgreSQL: pgsql/src/port/copydir.c,v 1.30 2010/02/22 02:50:10 tgl Exp $
+ * $PostgreSQL: pgsql/src/port/copydir.c,v 1.31 2010/02/22 15:29:46 tgl Exp $
15
16
*-------------------------------------------------------------------------
17
*/
@@ -229,9 +229,12 @@ fsync_fname(char *fname)
229
(errcode_for_file_access(),
230
errmsg("could not open file \"%s\": %m", fname)));
231
232
+ errno = 0;
233
+
234
if (pg_fsync(fd) != 0)
235
ereport(ERROR,
236
237
errmsg("could not fsync file \"%s\": %m", fname)));
238
239
close(fd);
240
}
0 commit comments