This is an automated email from the ASF dual-hosted git repository.

yjhjstz pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/cloudberry.git

commit 7dfd904d1fc412a64ad1a08f385baa7a06f03751
Author: Yongtao Huang <99629139+hyongtao...@users.noreply.github.com>
AuthorDate: Tue Jun 27 09:19:15 2023 +0800

    Post fix: Change resgroup name.
    
    This is a post commit of
    
https://github.com/greenplum-db/gpdb/commit/7a4c80d7e3dbab86cebda28365cb62d11eb10fe9
    
    change "i_cpu_hard_quota_limit" to "i_cpu_max_percent"
    and "i_cpu_soft_priority" to "i_cpu_weight". for consistency.
    
    Signed-off-by: Yongtao Huang <yongt...@vmware.com>
---
 src/bin/pg_dump/pg_dumpall.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/src/bin/pg_dump/pg_dumpall.c b/src/bin/pg_dump/pg_dumpall.c
index 160b261c70..4f4e39325a 100644
--- a/src/bin/pg_dump/pg_dumpall.c
+++ b/src/bin/pg_dump/pg_dumpall.c
@@ -801,9 +801,9 @@ dumpResGroups(PGconn *conn)
        PGresult   *res;
        int             i;
        int             i_groupname,
-                       i_cpu_hard_quota_limit,
+                       i_cpu_max_percent,
                        i_concurrency,
-                       i_cpu_soft_priority,
+                       i_cpu_weight,
                        i_cpuset;
 
        printfPQExpBuffer(buf, "SELECT g.rsgname AS groupname, "
@@ -821,8 +821,8 @@ dumpResGroups(PGconn *conn)
 
        i_groupname = PQfnumber(res, "groupname");
        i_concurrency = PQfnumber(res, "concurrency");
-       i_cpu_hard_quota_limit = PQfnumber(res, "cpu_max_percent");
-       i_cpu_soft_priority = PQfnumber(res, "cpu_weight");
+       i_cpu_max_percent = PQfnumber(res, "cpu_max_percent");
+       i_cpu_weight = PQfnumber(res, "cpu_weight");
        i_cpuset = PQfnumber(res, "cpuset");
 
        if (PQntuples(res) > 0)
@@ -838,8 +838,8 @@ dumpResGroups(PGconn *conn)
 
                groupname = PQgetvalue(res, i, i_groupname);
                concurrency = PQgetvalue(res, i, i_concurrency);
-               cpu_max_percent = PQgetvalue(res, i, i_cpu_hard_quota_limit);
-               cpu_weight = PQgetvalue(res, i, i_cpu_soft_priority);
+               cpu_max_percent = PQgetvalue(res, i, i_cpu_max_percent);
+               cpu_weight = PQgetvalue(res, i, i_cpu_weight);
                cpuset = PQgetvalue(res, i, i_cpuset);
 
                resetPQExpBuffer(buf);


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@cloudberry.apache.org
For additional commands, e-mail: commits-h...@cloudberry.apache.org

Reply via email to