Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
793d5215
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,发现更多精彩内容 >>
提交
793d5215
编写于
8月 11, 2017
作者:
H
Heikki Linnakangas
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Use Assert rather than assert in backend code.
上级
0a2a2600
变更
7
显示空白变更内容
内联
并排
Showing
7 changed file
with
7 addition
and
14 deletion
+7
-14
src/backend/cdb/cdbbackup.c
src/backend/cdb/cdbbackup.c
+5
-6
src/backend/cdb/cdbfilerep.c
src/backend/cdb/cdbfilerep.c
+0
-1
src/backend/cdb/cdbfilerepprimaryack.c
src/backend/cdb/cdbfilerepprimaryack.c
+0
-1
src/backend/cdb/cdbfilerepresetpeerprocess.c
src/backend/cdb/cdbfilerepresetpeerprocess.c
+0
-1
src/backend/cdb/cdbfilerepservice.c
src/backend/cdb/cdbfilerepservice.c
+0
-1
src/backend/cdb/cdbfts.c
src/backend/cdb/cdbfts.c
+0
-1
src/backend/cdb/cdbhash.c
src/backend/cdb/cdbhash.c
+2
-3
未找到文件。
src/backend/cdb/cdbbackup.c
浏览文件 @
793d5215
...
...
@@ -7,7 +7,6 @@
*/
#include <unistd.h>
#include <sys/stat.h>
#include <assert.h>
#include <dirent.h>
#include <sys/wait.h>
...
...
@@ -984,7 +983,7 @@ gp_backup_launch__(PG_FUNCTION_ARGS)
/* Restore process interval timers */
restoreTimers
(
&
savetimers
);
a
ssert
(
pszSaveBackupfileName
!=
NULL
&&
pszSaveBackupfileName
[
0
]
!=
'\0'
);
A
ssert
(
pszSaveBackupfileName
!=
NULL
&&
pszSaveBackupfileName
[
0
]
!=
'\0'
);
return
DirectFunctionCall1
(
textin
,
CStringGetDatum
(
pszSaveBackupfileName
));
}
...
...
@@ -1442,7 +1441,7 @@ gp_restore_launch__(PG_FUNCTION_ARGS)
/* Restore process interval timers */
restoreTimers
(
&
savetimers
);
a
ssert
(
pszBackupFileName
!=
NULL
&&
pszBackupFileName
[
0
]
!=
'\0'
);
A
ssert
(
pszBackupFileName
!=
NULL
&&
pszBackupFileName
[
0
]
!=
'\0'
);
return
DirectFunctionCall1
(
textin
,
CStringGetDatum
(
pszBackupFileName
));
}
...
...
@@ -1631,7 +1630,7 @@ gp_write_backup_file__(PG_FUNCTION_ARGS)
fclose
(
f
);
f
=
NULL
;
a
ssert
(
pszFileName
!=
NULL
&&
pszFileName
[
0
]
!=
'\0'
);
A
ssert
(
pszFileName
!=
NULL
&&
pszFileName
[
0
]
!=
'\0'
);
return
DirectFunctionCall1
(
textin
,
CStringGetDatum
(
pszFileName
));
}
...
...
@@ -1923,7 +1922,7 @@ formBackupFilePathName(char *pszBackupDirectory, char *pszBackupKey, bool is_com
/* Now add up the length of the pieces */
len
=
strlen
(
pszBackupDirectory
);
a
ssert
(
len
>=
1
);
A
ssert
(
len
>=
1
);
if
(
pszBackupDirectory
[
strlen
(
pszBackupDirectory
)
-
1
]
!=
'/'
)
{
len
++
;
...
...
@@ -2013,7 +2012,7 @@ formStatusFilePathName(char *pszBackupDirectory, char *pszBackupKey, bool bIsBac
/* Now add up the length of the pieces */
len
=
strlen
(
pszBackupDirectory
);
a
ssert
(
len
>=
1
);
A
ssert
(
len
>=
1
);
if
(
pszBackupDirectory
[
strlen
(
pszBackupDirectory
)
-
1
]
!=
'/'
)
len
++
;
...
...
src/backend/cdb/cdbfilerep.c
浏览文件 @
793d5215
...
...
@@ -20,7 +20,6 @@
#include <unistd.h>
#include <sys/wait.h>
#include <sys/stat.h>
#include <assert.h>
#include <sys/time.h>
#include <sys/socket.h>
#include <arpa/inet.h>
...
...
src/backend/cdb/cdbfilerepprimaryack.c
浏览文件 @
793d5215
...
...
@@ -9,7 +9,6 @@
#include <signal.h>
#include <unistd.h>
#include <assert.h>
#include <fcntl.h>
#include <sys/stat.h>
#include <sys/time.h>
...
...
src/backend/cdb/cdbfilerepresetpeerprocess.c
浏览文件 @
793d5215
...
...
@@ -27,7 +27,6 @@
#include <signal.h>
#include <unistd.h>
#include <sys/wait.h>
#include <assert.h>
#include <sys/time.h>
// #include "libpq/pqcomm.h"
#include "libpq/ip.h"
...
...
src/backend/cdb/cdbfilerepservice.c
浏览文件 @
793d5215
...
...
@@ -10,7 +10,6 @@
#include <signal.h>
#include <unistd.h>
#include <assert.h>
#include "miscadmin.h"
#include "catalog/catalog.h"
...
...
src/backend/cdb/cdbfts.c
浏览文件 @
793d5215
...
...
@@ -9,7 +9,6 @@
*/
#include "postgres.h"
#include <assert.h>
#include "miscadmin.h"
#include "gp-libpq-fe.h"
...
...
src/backend/cdb/cdbhash.c
浏览文件 @
793d5215
...
...
@@ -10,7 +10,6 @@
*/
#include "postgres.h"
#include <assert.h>
#include "access/tuptoaster.h"
#include "utils/builtins.h"
#include "catalog/pg_type.h"
...
...
@@ -85,7 +84,7 @@ makeCdbHash(int numsegs)
{
CdbHash
*
h
;
a
ssert
(
numsegs
>
0
);
/* verify number of segments is legal. */
A
ssert
(
numsegs
>
0
);
/* verify number of segments is legal. */
/* Create a pointer to a CdbHash that includes the hash properties */
h
=
palloc
(
sizeof
(
CdbHash
));
...
...
@@ -655,7 +654,7 @@ cdbhashreduce(CdbHash *h)
* therefore initialize to this value for
* error checking? */
a
ssert
(
h
->
reducealg
==
REDUCE_BITMASK
||
h
->
reducealg
==
REDUCE_LAZYMOD
);
A
ssert
(
h
->
reducealg
==
REDUCE_BITMASK
||
h
->
reducealg
==
REDUCE_LAZYMOD
);
/*
* Reduce our 32-bit hash value to a segment number
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录