提交 245ca266 编写于 作者: N Ning Yu

ic-proxy: new value "proxy" in GUC gp_interconnect_type

It is for the ic-proxy mode.
上级 3140a44f
...@@ -510,6 +510,9 @@ static const struct config_enum_entry gp_interconnect_fc_methods[] = { ...@@ -510,6 +510,9 @@ static const struct config_enum_entry gp_interconnect_fc_methods[] = {
static const struct config_enum_entry gp_interconnect_types[] = { static const struct config_enum_entry gp_interconnect_types[] = {
{"udpifc", INTERCONNECT_TYPE_UDPIFC}, {"udpifc", INTERCONNECT_TYPE_UDPIFC},
{"tcp", INTERCONNECT_TYPE_TCP}, {"tcp", INTERCONNECT_TYPE_TCP},
#ifdef HAVE_LIBUV
{"proxy", INTERCONNECT_TYPE_PROXY},
#endif /* HAVE_LIBUV */
{NULL, 0} {NULL, 0}
}; };
...@@ -4522,7 +4525,11 @@ struct config_enum ConfigureNamesEnum_gp[] = ...@@ -4522,7 +4525,11 @@ struct config_enum ConfigureNamesEnum_gp[] =
{ {
{"gp_interconnect_type", PGC_BACKEND, GP_ARRAY_TUNING, {"gp_interconnect_type", PGC_BACKEND, GP_ARRAY_TUNING,
gettext_noop("Sets the protocol used for inter-node communication."), gettext_noop("Sets the protocol used for inter-node communication."),
gettext_noop("Valid values are \"tcp\" and \"udpifc\".") gettext_noop("Valid values are \"tcp\", \"udpifc\""
#ifdef HAVE_LIBUV
" and \"proxy\""
#endif /* HAVE_LIBUV */
".")
}, },
&Gp_interconnect_type, &Gp_interconnect_type,
INTERCONNECT_TYPE_UDPIFC, gp_interconnect_types, INTERCONNECT_TYPE_UDPIFC, gp_interconnect_types,
......
...@@ -280,6 +280,7 @@ typedef enum GpVars_Interconnect_Type ...@@ -280,6 +280,7 @@ typedef enum GpVars_Interconnect_Type
{ {
INTERCONNECT_TYPE_TCP = 0, INTERCONNECT_TYPE_TCP = 0,
INTERCONNECT_TYPE_UDPIFC, INTERCONNECT_TYPE_UDPIFC,
INTERCONNECT_TYPE_PROXY,
} GpVars_Interconnect_Type; } GpVars_Interconnect_Type;
extern int Gp_interconnect_type; extern int Gp_interconnect_type;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册