Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
8c68bcc9
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,发现更多精彩内容 >>
提交
8c68bcc9
编写于
3月 09, 2016
作者:
H
Heikki Linnakangas
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Remove dummy extentseqnum argument.
All callers passed 1, so it didn't do anything interesting.
上级
86ad18ce
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
11 addition
and
16 deletion
+11
-16
src/backend/access/transam/xact.c
src/backend/access/transam/xact.c
+3
-3
src/backend/storage/file/buffile.c
src/backend/storage/file/buffile.c
+2
-2
src/backend/storage/file/fd.c
src/backend/storage/file/fd.c
+6
-10
src/include/storage/fd.h
src/include/storage/fd.h
+0
-1
未找到文件。
src/backend/access/transam/xact.c
浏览文件 @
8c68bcc9
...
...
@@ -2386,7 +2386,7 @@ OpenOrCreateSubtransIdFile(DistributedTransactionId dxid)
{
subxip_file
=
OpenTemporaryFile
(
Subtransaction_filename
(
dxid
),
1
,
false
,
true
,
true
,
false
);
false
,
true
,
true
,
false
);
// What should be done if this fails ??
}
}
...
...
@@ -2791,7 +2791,7 @@ GetSubXidsInXidBuffer(void)
subxip_file
=
OpenTemporaryFile
(
Subtransaction_filename
(
SharedLocalSnapshotSlot
->
QDxid
),
1
,
false
,
false
,
false
,
false
);
false
,
false
,
false
,
false
);
if
(
subxip_file
==
0
)
{
...
...
@@ -2857,7 +2857,7 @@ ShowSubtransactionsForSharedSnapshot(void)
subxip_file
=
OpenTemporaryFile
(
Subtransaction_filename
(
SharedLocalSnapshotSlot
->
QDxid
),
1
,
false
,
false
,
false
,
false
);
false
,
false
,
false
,
false
);
if
(
subxip_file
==
0
)
{
...
...
src/backend/storage/file/buffile.c
浏览文件 @
8c68bcc9
...
...
@@ -105,7 +105,7 @@ BufFileCreateTemp(const char *filePrefix, bool interXact)
File
pfile
;
bool
closeAtEOXact
=
!
interXact
;
pfile
=
OpenTemporaryFile
(
filePrefix
,
1
,
/* extentseqnum */
pfile
=
OpenTemporaryFile
(
filePrefix
,
true
,
/* makenameunique */
true
,
/* create */
true
,
/* delOnClose */
...
...
@@ -183,7 +183,7 @@ BufFileCreateTemp_ReaderWriter(const char *filePrefix, bool isWriter,
bool
interXact
)
{
bool
closeAtEOXact
=
!
interXact
;
File
pfile
=
OpenTemporaryFile
(
filePrefix
,
1
,
/* extentseqnum */
File
pfile
=
OpenTemporaryFile
(
filePrefix
,
false
,
/* makenameunique */
isWriter
,
/* create */
isWriter
,
/* delOnClose */
...
...
src/backend/storage/file/fd.c
浏览文件 @
8c68bcc9
...
...
@@ -884,11 +884,10 @@ FileNameOpenFile(FileName fileName, int fileFlags, int fileMode)
* should be unique to this particular OpenTemporaryFile() request and
* distinct from any others in concurrent use on the same host. As a
* convenience for monitoring and debugging, the given 'fileName' string
*
and 'extentseqnum' are
embedded in the file name.
*
is
embedded in the file name.
*
* If 'makenameunique' is false, then 'fileName' and 'extentseqnum' identify a
* new or existing temporary file which other processes also could open and
* share.
* If 'makenameunique' is false, then 'fileName' identify a new or existing
* temporary file which other processes also could open and share.
*
* If 'create' is true, a new file is created. If successful, a valid vfd
* index (>0) is returned; otherwise an error is thrown.
...
...
@@ -912,7 +911,6 @@ FileNameOpenFile(FileName fileName, int fileFlags, int fileMode)
*/
File
OpenTemporaryFile
(
const
char
*
fileName
,
int
extentseqnum
,
bool
makenameunique
,
bool
create
,
bool
delOnClose
,
...
...
@@ -937,18 +935,16 @@ OpenTemporaryFile(const char *fileName,
* database instance.
*/
snprintf
(
tempfilepath
,
sizeof
(
tempfilepath
),
"%s_%d
_%04d
.%ld"
,
"%s_%d.%ld"
,
tempfileprefix
,
MyProcPid
,
extentseqnum
,
tempFileCounter
++
);
}
else
{
snprintf
(
tempfilepath
,
sizeof
(
tempfilepath
),
"%s.%04d"
,
tempfileprefix
,
extentseqnum
);
"%s"
,
tempfileprefix
);
}
return
OpenNamedFile
(
tempfilepath
,
create
,
delOnClose
,
closeAtEOXact
);
...
...
src/include/storage/fd.h
浏览文件 @
8c68bcc9
...
...
@@ -65,7 +65,6 @@ extern File PathNameOpenFile(FileName fileName, int fileFlags, int fileMode);
File
OpenTemporaryFile
(
const
char
*
fileName
,
int
extentseqnum
,
bool
makenameunique
,
bool
create
,
bool
delOnClose
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录