Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
1494931d
G
Gpdb
项目概览
Greenplum
/
Gpdb
通知
7
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
Gpdb
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
1494931d
编写于
3月 21, 2014
作者:
B
Bruce Momjian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Remove MinGW readdir/errno bug workaround fixed on 2003-10-10
上级
6f03927f
变更
9
隐藏空白更改
内联
并排
Showing
9 changed file
with
0 addition
and
66 deletion
+0
-66
contrib/pg_archivecleanup/pg_archivecleanup.c
contrib/pg_archivecleanup/pg_archivecleanup.c
+0
-6
contrib/pg_standby/pg_standby.c
contrib/pg_standby/pg_standby.c
+0
-6
src/backend/storage/file/fd.c
src/backend/storage/file/fd.c
+0
-6
src/bin/initdb/initdb.c
src/bin/initdb/initdb.c
+0
-6
src/bin/pg_basebackup/pg_receivexlog.c
src/bin/pg_basebackup/pg_receivexlog.c
+0
-6
src/bin/pg_dump/pg_backup_directory.c
src/bin/pg_dump/pg_backup_directory.c
+0
-6
src/bin/pg_resetxlog/pg_resetxlog.c
src/bin/pg_resetxlog/pg_resetxlog.c
+0
-18
src/common/pgfnames.c
src/common/pgfnames.c
+0
-6
src/port/pgcheckdir.c
src/port/pgcheckdir.c
+0
-6
未找到文件。
contrib/pg_archivecleanup/pg_archivecleanup.c
浏览文件 @
1494931d
...
...
@@ -165,12 +165,6 @@ CleanupPriorWALFiles(void)
}
}
#ifdef WIN32
/* Bug in old Mingw dirent.c; fixed in mingw-runtime-3.2, 2003-10-10 */
if
(
GetLastError
()
==
ERROR_NO_MORE_FILES
)
errno
=
0
;
#endif
if
(
errno
)
fprintf
(
stderr
,
"%s: could not read archive location
\"
%s
\"
: %s
\n
"
,
progname
,
archiveLocation
,
strerror
(
errno
));
...
...
contrib/pg_standby/pg_standby.c
浏览文件 @
1494931d
...
...
@@ -284,12 +284,6 @@ CustomizableCleanupPriorWALFiles(void)
}
}
#ifdef WIN32
/* Bug in old Mingw dirent.c; fixed in mingw-runtime-3.2, 2003-10-10 */
if
(
GetLastError
()
==
ERROR_NO_MORE_FILES
)
errno
=
0
;
#endif
if
(
errno
)
fprintf
(
stderr
,
"%s: could not read archive location
\"
%s
\"
: %s
\n
"
,
progname
,
archiveLocation
,
strerror
(
errno
));
...
...
src/backend/storage/file/fd.c
浏览文件 @
1494931d
...
...
@@ -1956,12 +1956,6 @@ ReadDir(DIR *dir, const char *dirname)
if
((
dent
=
readdir
(
dir
))
!=
NULL
)
return
dent
;
#ifdef WIN32
/* Bug in old Mingw dirent.c; fixed in mingw-runtime-3.2, 2003-10-10 */
if
(
GetLastError
()
==
ERROR_NO_MORE_FILES
)
errno
=
0
;
#endif
if
(
errno
)
ereport
(
ERROR
,
(
errcode_for_file_access
(),
...
...
src/bin/initdb/initdb.c
浏览文件 @
1494931d
...
...
@@ -564,12 +564,6 @@ walkdir(char *path, void (*action) (char *fname, bool isdir))
(
*
action
)
(
subpath
,
false
);
}
#ifdef WIN32
/* Bug in old Mingw dirent.c; fixed in mingw-runtime-3.2, 2003-10-10 */
if
(
GetLastError
()
==
ERROR_NO_MORE_FILES
)
errno
=
0
;
#endif
if
(
errno
)
{
fprintf
(
stderr
,
_
(
"%s: could not read directory
\"
%s
\"
: %s
\n
"
),
...
...
src/bin/pg_basebackup/pg_receivexlog.c
浏览文件 @
1494931d
...
...
@@ -209,12 +209,6 @@ FindStreamingStart(uint32 *tli)
}
}
#ifdef WIN32
/* Bug in old Mingw dirent.c; fixed in mingw-runtime-3.2, 2003-10-10 */
if
(
GetLastError
()
==
ERROR_NO_MORE_FILES
)
errno
=
0
;
#endif
if
(
errno
)
{
fprintf
(
stderr
,
_
(
"%s: could not read directory
\"
%s
\"
: %s
\n
"
),
...
...
src/bin/pg_dump/pg_backup_directory.c
浏览文件 @
1494931d
...
...
@@ -186,12 +186,6 @@ InitArchiveFmt_Directory(ArchiveHandle *AH)
}
}
#ifdef WIN32
/* Bug in old Mingw dirent.c; fixed in mingw-runtime-3.2, 2003-10-10 */
if
(
GetLastError
()
==
ERROR_NO_MORE_FILES
)
errno
=
0
;
#endif
if
(
errno
)
exit_horribly
(
modulename
,
"could not read directory
\"
%s
\"
: %s
\n
"
,
ctx
->
directory
,
strerror
(
errno
));
...
...
src/bin/pg_resetxlog/pg_resetxlog.c
浏览文件 @
1494931d
...
...
@@ -845,12 +845,6 @@ FindEndOfXLOG(void)
}
}
#ifdef WIN32
/* Bug in old Mingw dirent.c; fixed in mingw-runtime-3.2, 2003-10-10 */
if
(
GetLastError
()
==
ERROR_NO_MORE_FILES
)
errno
=
0
;
#endif
if
(
errno
)
{
fprintf
(
stderr
,
_
(
"%s: could not read directory
\"
%s
\"
: %s
\n
"
),
...
...
@@ -908,12 +902,6 @@ KillExistingXLOG(void)
}
}
#ifdef WIN32
/* Bug in old Mingw dirent.c; fixed in mingw-runtime-3.2, 2003-10-10 */
if
(
GetLastError
()
==
ERROR_NO_MORE_FILES
)
errno
=
0
;
#endif
if
(
errno
)
{
fprintf
(
stderr
,
_
(
"%s: could not read directory
\"
%s
\"
: %s
\n
"
),
...
...
@@ -966,12 +954,6 @@ KillExistingArchiveStatus(void)
}
}
#ifdef WIN32
/* Bug in old Mingw dirent.c; fixed in mingw-runtime-3.2, 2003-10-10 */
if
(
GetLastError
()
==
ERROR_NO_MORE_FILES
)
errno
=
0
;
#endif
if
(
errno
)
{
fprintf
(
stderr
,
_
(
"%s: could not read directory
\"
%s
\"
: %s
\n
"
),
...
...
src/common/pgfnames.c
浏览文件 @
1494931d
...
...
@@ -64,12 +64,6 @@ pgfnames(const char *path)
}
}
#ifdef WIN32
/* Bug in old Mingw dirent.c; fixed in mingw-runtime-3.2, 2003-10-10 */
if
(
GetLastError
()
==
ERROR_NO_MORE_FILES
)
errno
=
0
;
#endif
if
(
errno
)
{
#ifndef FRONTEND
...
...
src/port/pgcheckdir.c
浏览文件 @
1494931d
...
...
@@ -64,12 +64,6 @@ pg_check_dir(const char *dir)
}
}
#ifdef WIN32
/* Bug in old Mingw dirent.c; fixed in mingw-runtime-3.2, 2003-10-10 */
if
(
GetLastError
()
==
ERROR_NO_MORE_FILES
)
errno
=
0
;
#endif
if
(
errno
||
closedir
(
chkdir
))
result
=
-
1
;
/* some kind of I/O error? */
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录