提交 ff596905 编写于 作者: Z Zhenghua Lyu 提交者: GitHub

Fix bug: gpconfig change gp_resource_manager fail

The quote_string function will make sure that the value(if type is string) is
enclosed by `'`. This is introduced in previous commit(f936c4f3). We need
to make the change of gp_resource_manager meet the logic now.
上级 62b14ce6
...@@ -141,14 +141,14 @@ class Guc: ...@@ -141,14 +141,14 @@ class Guc:
return "invalid value for max_connections" return "invalid value for max_connections"
elif self.name == "gp_resource_manager": elif self.name == "gp_resource_manager":
if newval == "group": if newval == "'group'":
LOGGER.warn("Managing queries with resource groups is an " LOGGER.warn("Managing queries with resource groups is an "
"experimental feature. A work-in-progress version is " "experimental feature. A work-in-progress version is "
"enabled.") "enabled.")
msg = GpResGroup().validate() msg = GpResGroup().validate()
if msg is not None: if msg is not None:
return msg return msg
elif newval != "queue": elif newval != "'queue'":
return "the value of gp_resource_manager must be 'group' or 'queue'" return "the value of gp_resource_manager must be 'group' or 'queue'"
elif self.name == 'unix_socket_permissions': elif self.name == 'unix_socket_permissions':
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册