Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
753c9cb9
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,发现更多精彩内容 >>
提交
753c9cb9
编写于
1月 22, 1999
作者:
B
Bruce Momjian
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix for Size sizeof in cache code.
上级
8135140a
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
19 addition
and
19 deletion
+19
-19
src/backend/utils/cache/relcache.c
src/backend/utils/cache/relcache.c
+19
-19
未找到文件。
src/backend/utils/cache/relcache.c
浏览文件 @
753c9cb9
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/utils/cache/relcache.c,v 1.5
3 1999/01/17 06:18:51
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/utils/cache/relcache.c,v 1.5
4 1999/01/22 16:49:25
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -1876,7 +1876,7 @@ init_irels(void)
for
(
relno
=
0
;
relno
<
Num_indices_bootstrap
;
relno
++
)
{
/* first read the relation descriptor length */
if
((
nread
=
FileRead
(
fd
,
(
char
*
)
&
len
,
sizeof
(
int
)))
!=
sizeof
(
int
))
if
((
nread
=
FileRead
(
fd
,
(
char
*
)
&
len
,
sizeof
(
len
)))
!=
sizeof
(
len
))
{
write_irels
();
return
;
...
...
@@ -1899,7 +1899,7 @@ init_irels(void)
ird
->
lockInfo
=
(
char
*
)
NULL
;
/* next, read the access method tuple form */
if
((
nread
=
FileRead
(
fd
,
(
char
*
)
&
len
,
sizeof
(
int
)))
!=
sizeof
(
int
))
if
((
nread
=
FileRead
(
fd
,
(
char
*
)
&
len
,
sizeof
(
len
)))
!=
sizeof
(
len
))
{
write_irels
();
return
;
...
...
@@ -1915,7 +1915,7 @@ init_irels(void)
ird
->
rd_am
=
am
;
/* next read the relation tuple form */
if
((
nread
=
FileRead
(
fd
,
(
char
*
)
&
len
,
sizeof
(
int
)))
!=
sizeof
(
int
))
if
((
nread
=
FileRead
(
fd
,
(
char
*
)
&
len
,
sizeof
(
len
)))
!=
sizeof
(
len
))
{
write_irels
();
return
;
...
...
@@ -1937,7 +1937,7 @@ init_irels(void)
len
=
ATTRIBUTE_TUPLE_SIZE
;
for
(
i
=
0
;
i
<
relform
->
relnatts
;
i
++
)
{
if
((
nread
=
FileRead
(
fd
,
(
char
*
)
&
len
,
sizeof
(
int
)))
!=
sizeof
(
int
))
if
((
nread
=
FileRead
(
fd
,
(
char
*
)
&
len
,
sizeof
(
len
)))
!=
sizeof
(
len
))
{
write_irels
();
return
;
...
...
@@ -1953,7 +1953,7 @@ init_irels(void)
}
/* next, read the index strategy map */
if
((
nread
=
FileRead
(
fd
,
(
char
*
)
&
len
,
sizeof
(
int
)))
!=
sizeof
(
int
))
if
((
nread
=
FileRead
(
fd
,
(
char
*
)
&
len
,
sizeof
(
len
)))
!=
sizeof
(
len
))
{
write_irels
();
return
;
...
...
@@ -1985,7 +1985,7 @@ init_irels(void)
ird
->
rd_istrat
=
strat
;
/* finally, read the vector of support procedures */
if
((
nread
=
FileRead
(
fd
,
(
char
*
)
&
len
,
sizeof
(
int
)))
!=
sizeof
(
int
))
if
((
nread
=
FileRead
(
fd
,
(
char
*
)
&
len
,
sizeof
(
len
)))
!=
sizeof
(
len
))
{
write_irels
();
return
;
...
...
@@ -2082,8 +2082,8 @@ write_irels(void)
len
=
sizeof
(
RelationData
);
/* first, write the relation descriptor length */
if
((
nwritten
=
FileWrite
(
fd
,
(
char
*
)
&
len
,
sizeof
(
int
)))
!=
sizeof
(
int
))
if
((
nwritten
=
FileWrite
(
fd
,
(
char
*
)
&
len
,
sizeof
(
len
)))
!=
sizeof
(
len
))
elog
(
FATAL
,
"cannot write init file -- descriptor length"
);
/* next, write out the Relation structure */
...
...
@@ -2092,8 +2092,8 @@ write_irels(void)
/* next, write the access method tuple form */
len
=
sizeof
(
FormData_pg_am
);
if
((
nwritten
=
FileWrite
(
fd
,
(
char
*
)
&
len
,
sizeof
(
int
)))
!=
sizeof
(
int
))
if
((
nwritten
=
FileWrite
(
fd
,
(
char
*
)
&
len
,
sizeof
(
len
)))
!=
sizeof
(
len
))
elog
(
FATAL
,
"cannot write init file -- am tuple form length"
);
if
((
nwritten
=
FileWrite
(
fd
,
(
char
*
)
am
,
len
))
!=
len
)
...
...
@@ -2101,8 +2101,8 @@ write_irels(void)
/* next write the relation tuple form */
len
=
sizeof
(
FormData_pg_class
);
if
((
nwritten
=
FileWrite
(
fd
,
(
char
*
)
&
len
,
sizeof
(
int
)))
!=
sizeof
(
int
))
if
((
nwritten
=
FileWrite
(
fd
,
(
char
*
)
&
len
,
sizeof
(
len
)))
!=
sizeof
(
len
))
elog
(
FATAL
,
"cannot write init file -- relation tuple form length"
);
if
((
nwritten
=
FileWrite
(
fd
,
(
char
*
)
relform
,
len
))
!=
len
)
...
...
@@ -2112,8 +2112,8 @@ write_irels(void)
len
=
ATTRIBUTE_TUPLE_SIZE
;
for
(
i
=
0
;
i
<
relform
->
relnatts
;
i
++
)
{
if
((
nwritten
=
FileWrite
(
fd
,
(
char
*
)
&
len
,
sizeof
(
int
)))
!=
sizeof
(
int
))
if
((
nwritten
=
FileWrite
(
fd
,
(
char
*
)
&
len
,
sizeof
(
len
)))
!=
sizeof
(
len
))
elog
(
FATAL
,
"cannot write init file -- length of attdesc %d"
,
i
);
if
((
nwritten
=
FileWrite
(
fd
,
(
char
*
)
ird
->
rd_att
->
attrs
[
i
],
len
))
!=
len
)
...
...
@@ -2123,8 +2123,8 @@ write_irels(void)
/* next, write the index strategy map */
len
=
AttributeNumberGetIndexStrategySize
(
relform
->
relnatts
,
am
->
amstrategies
);
if
((
nwritten
=
FileWrite
(
fd
,
(
char
*
)
&
len
,
sizeof
(
int
)))
!=
sizeof
(
int
))
if
((
nwritten
=
FileWrite
(
fd
,
(
char
*
)
&
len
,
sizeof
(
len
)))
!=
sizeof
(
len
))
elog
(
FATAL
,
"cannot write init file -- strategy map length"
);
if
((
nwritten
=
FileWrite
(
fd
,
(
char
*
)
strat
,
len
))
!=
len
)
...
...
@@ -2132,8 +2132,8 @@ write_irels(void)
/* finally, write the vector of support procedures */
len
=
relform
->
relnatts
*
(
am
->
amsupport
*
sizeof
(
RegProcedure
));
if
((
nwritten
=
FileWrite
(
fd
,
(
char
*
)
&
len
,
sizeof
(
int
)))
!=
sizeof
(
int
))
if
((
nwritten
=
FileWrite
(
fd
,
(
char
*
)
&
len
,
sizeof
(
len
)))
!=
sizeof
(
len
))
elog
(
FATAL
,
"cannot write init file -- support vector length"
);
if
((
nwritten
=
FileWrite
(
fd
,
(
char
*
)
support
,
len
))
!=
len
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录