Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit8cf8259

Browse files
committed
Avoid file descriptor leak in pg_test_fsync.
This can cause problems on Windows, where files that are still opencan't be unlinked.Jeff Janes
1 parentf6fb7fb commit8cf8259

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

‎contrib/pg_test_fsync/pg_test_fsync.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,8 +260,6 @@ test_sync(int writes_per_op)
260260
}
261261
else
262262
{
263-
if ((tmpfile=open(filename,O_RDWR |O_DSYNC |PG_O_DIRECT,0))==-1)
264-
die("could not open output file");
265263
START_TIMER;
266264
for (ops=0;alarm_triggered== false;ops++)
267265
{

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp