提交 713efdd2 编写于 作者: N Ning Yu

resgroup: no warning in Probe() in dummy backend

The resgroup dummy backend currently generate a warning in the Probe() call, this
is not supposed as this function is designed to be called no matter
resgroup is enabled or not.

Removed the warning message from dummy Probe().

Also update warning messages in dummy backend.

It used to generate warning messages like below in the dummy backend:

    cpu rate limitation for resource group is unsupported on this system.

This message was originally introduced when resgroup supported only cpu
rate limitation, but as now there are more supported capabilities we
should have this message updated.
上级 0d5e8b6e
...@@ -27,7 +27,7 @@ ...@@ -27,7 +27,7 @@
*/ */
#define unsupported_system() \ #define unsupported_system() \
elog(WARNING, "cpu rate limitation for resource group is unsupported on this system") elog(WARNING, "resource group is not supported on this system")
/* Return the name for the OS group implementation */ /* Return the name for the OS group implementation */
const char * const char *
...@@ -45,7 +45,6 @@ ResGroupOps_Name(void) ...@@ -45,7 +45,6 @@ ResGroupOps_Name(void)
bool bool
ResGroupOps_Probe(void) ResGroupOps_Probe(void)
{ {
unsupported_system();
return false; return false;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册