Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
ed61cf61
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,发现更多精彩内容 >>
提交
ed61cf61
编写于
7月 28, 2016
作者:
K
Kenan Yao
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Trivial format and comment cleanup.
上级
6833b3c2
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
11 addition
and
18 deletion
+11
-18
src/backend/cdb/dispatcher/cdbdisp_query.c
src/backend/cdb/dispatcher/cdbdisp_query.c
+8
-8
src/backend/executor/execUtils.c
src/backend/executor/execUtils.c
+3
-10
未找到文件。
src/backend/cdb/dispatcher/cdbdisp_query.c
浏览文件 @
ed61cf61
...
...
@@ -107,7 +107,7 @@ fillSliceVector(SliceTable *sliceTable,
static
char
*
buildGpQueryString
(
struct
CdbDispatcherState
*
ds
,
DispatchCommandQueryParms
*
pQueryParms
,
DispatchCommandQueryParms
*
pQueryParms
,
int
*
finalLen
);
static
void
...
...
@@ -238,7 +238,7 @@ cdbdisp_dispatchPlan(struct QueryDesc *queryDesc,
queryDesc
->
operation
==
CMD_DELETE
)
{
MemoryContext
oldContext
;
List
*
cursors
;
List
*
cursors
;
oldContext
=
CurrentMemoryContext
;
if
(
stmt
->
qdContext
)
...
...
@@ -552,10 +552,10 @@ CdbDispatchUtilityStatement(struct Node *stmt,
*/
static
void
cdbdisp_dispatchCommandInternal
(
const
char
*
strCommand
,
char
*
serializedQuerytree
,
int
serializedQuerytreelen
,
int
flags
,
CdbPgResults
*
cdb_pgresults
)
char
*
serializedQuerytree
,
int
serializedQuerytreelen
,
int
flags
,
CdbPgResults
*
cdb_pgresults
)
{
struct
CdbDispatcherState
ds
=
{
NULL
,
NULL
,
NULL
};
CdbDispatchResults
*
dispatchresults
=
NULL
;
...
...
@@ -1147,8 +1147,8 @@ cdbdisp_dispatchX(DispatchCommandQueryParms *pQueryParms,
int
iSlice
;
int
rootIdx
=
pQueryParms
->
rootIdx
;
char
*
queryText
=
NULL
;
int
queryTextLength
=
0
;
char
*
queryText
=
NULL
;
int
queryTextLength
=
0
;
if
(
log_dispatch_stats
)
ResetUsage
();
...
...
src/backend/executor/execUtils.c
浏览文件 @
ed61cf61
...
...
@@ -1665,7 +1665,8 @@ static void InventorySliceTree(Slice ** sliceMap, int sliceIndex, SliceReq * req
static
void
AssociateSlicesToProcesses
(
Slice
**
sliceMap
,
int
sliceIndex
,
SliceReq
*
req
);
/* Function AssignGangs runs on the QD and finishes construction of the
/*
* Function AssignGangs runs on the QD and finishes construction of the
* global slice table for a plan by assigning gangs allocated by the
* executor factory to the slices of the slice table.
*
...
...
@@ -1678,13 +1679,6 @@ static void AssociateSlicesToProcesses(Slice ** sliceMap, int sliceIndex, SliceR
* allocate a minimal set of gangs that can satisfy any of the slice trees,
* and associating the allocated gangs with slices in the slice table.
*
* The argument utility_segment_index is the segment index to use for
* 1-gangs that run on QEs.
*
* TODO Currently (July 2005) this argument is always supplied as 0, but
* there are no cases of the planner specifying a fixed Motion to a
* QE, so we don't know the case works.
*
* On successful exit, the CDBProcess lists (primaryProcesses, mirrorProcesses)
* and the Gang pointers (primaryGang, mirrorGang) are set correctly in each
* slice in the slice table.
...
...
@@ -1702,7 +1696,7 @@ AssignGangs(QueryDesc *queryDesc)
SliceReq
req
,
inv
;
/* Make a map so we can access slices quickly by index.
*/
/* Make a map so we can access slices quickly by index. */
nslices
=
list_length
(
sliceTable
->
slices
);
sliceMap
=
(
Slice
**
)
palloc
(
nslices
*
sizeof
(
Slice
*
));
i
=
0
;
...
...
@@ -1769,7 +1763,6 @@ AssignGangs(QueryDesc *queryDesc)
}
/* Use the gangs to construct the CdbProcess lists in slices. */
inv
.
nxtNgang
=
0
;
inv
.
nxt1gang_primary_reader
=
0
;
inv
.
nxt1gang_entrydb_reader
=
0
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录