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

Commit53e1498

Browse files
committed
Fix some problems with patch to fsync the data directory.
pg_win32_is_junction() was a typo for pgwin32_is_junction(). open()was used not only in a two-argument form, which breaks on Windows,but also where BasicOpenFile() should have been used.Per reports from Andrew Dunstan and David Rowley.
1 parent2bc3397 commit53e1498

File tree

1 file changed

+2
-2
lines changed
  • src/backend/storage/file

1 file changed

+2
-2
lines changed

‎src/backend/storage/file/fd.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2276,7 +2276,7 @@ pre_sync_fname(char *fname, bool isdir)
22762276
{
22772277
intfd;
22782278

2279-
fd=open(fname,O_RDONLY |PG_BINARY);
2279+
fd=BasicOpenFile(fname,O_RDONLY |PG_BINARY,0);
22802280

22812281
/*
22822282
* Some OSs don't allow us to open directories at all (Windows returns
@@ -2335,7 +2335,7 @@ walkdir(char *path, void (*action) (char *fname, bool isdir))
23352335
#ifndefWIN32
23362336
elseif (S_ISLNK(fst.st_mode))
23372337
#else
2338-
elseif (pg_win32_is_junction(subpath))
2338+
elseif (pgwin32_is_junction(subpath))
23392339
#endif
23402340
{
23412341
#if defined(HAVE_READLINK)|| defined(WIN32)

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp