Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
b1065f8f
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,发现更多精彩内容 >>
提交
b1065f8f
编写于
3月 23, 2001
作者:
P
Philip Warner
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix checking of file operations in demo ('files') output format.
上级
a0624736
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
19 addition
and
8 deletion
+19
-8
src/bin/pg_dump/pg_backup_files.c
src/bin/pg_dump/pg_backup_files.c
+19
-8
未找到文件。
src/bin/pg_dump/pg_backup_files.c
浏览文件 @
b1065f8f
...
...
@@ -20,7 +20,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_backup_files.c,v 1.
8 2001/03/22 04:00:13 momjian
Exp $
* $Header: /cvsroot/pgsql/src/bin/pg_dump/pg_backup_files.c,v 1.
9 2001/03/23 01:27:12 pjw
Exp $
*
* Modifications - 28-Jun-2000 - pjw@rhyme.com.au
*
...
...
@@ -158,7 +158,9 @@ InitArchiveFmt_Files(ArchiveHandle *AH)
ReadHead
(
AH
);
ReadToc
(
AH
);
fclose
(
AH
->
FH
);
/* Nothing else in the file... */
/* Nothing else in the file... */
if
(
fclose
(
AH
->
FH
)
!=
0
)
die_horribly
(
AH
,
"%s: Could not close TOC file (fclose failed).
\n
"
,
progname
);
}
}
...
...
@@ -268,7 +270,9 @@ _EndData(ArchiveHandle *AH, TocEntry *te)
lclTocEntry
*
tctx
=
(
lclTocEntry
*
)
te
->
formatData
;
/* Close the file */
GZCLOSE
(
tctx
->
FH
);
if
(
GZCLOSE
(
tctx
->
FH
)
!=
0
)
die_horribly
(
AH
,
"%s: could not close data file
\n
"
,
progname
);
tctx
->
FH
=
NULL
;
}
...
...
@@ -299,7 +303,9 @@ _PrintFileData(ArchiveHandle *AH, char *filename, RestoreOptions *ropt)
ahwrite
(
buf
,
1
,
cnt
,
AH
);
}
GZCLOSE
(
AH
->
FH
);
if
(
GZCLOSE
(
AH
->
FH
)
!=
0
)
die_horribly
(
AH
,
"%s: could not close data file after reading
\n
"
,
progname
);
}
...
...
@@ -374,7 +380,8 @@ _LoadBlobs(ArchiveHandle *AH, RestoreOptions *ropt)
_getBlobTocEntry
(
AH
,
&
oid
,
fname
);
}
fclose
(
ctx
->
blobToc
);
if
(
fclose
(
ctx
->
blobToc
)
!=
0
)
die_horribly
(
AH
,
"%s: could not close BLOB TOC file
\n
"
,
progname
);
EndRestoreBlobs
(
AH
);
}
...
...
@@ -437,7 +444,8 @@ _CloseArchive(ArchiveHandle *AH)
{
WriteHead
(
AH
);
WriteToc
(
AH
);
fclose
(
AH
->
FH
);
if
(
fclose
(
AH
->
FH
)
!=
0
)
die_horribly
(
AH
,
"%s: could not close TOC file
\n
"
,
progname
);
WriteDataChunks
(
AH
);
}
...
...
@@ -524,7 +532,8 @@ _EndBlob(ArchiveHandle *AH, TocEntry *te, int oid)
{
lclTocEntry
*
tctx
=
(
lclTocEntry
*
)
te
->
formatData
;
GZCLOSE
(
tctx
->
FH
);
if
(
GZCLOSE
(
tctx
->
FH
)
!=
0
)
die_horribly
(
AH
,
"%s: could not close BLOB file
\n
"
,
progname
);
}
/*
...
...
@@ -541,6 +550,8 @@ _EndBlobs(ArchiveHandle *AH, TocEntry *te)
/* Write out a fake zero OID to mark end-of-blobs. */
/* WriteInt(AH, 0); */
fclose
(
ctx
->
blobToc
);
if
(
fclose
(
ctx
->
blobToc
)
!=
0
)
die_horribly
(
AH
,
"%s: could not close BLOB TOC file
\n
"
,
progname
);
}
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录