Github user paul-guo- commented on a diff in the pull request:

    https://github.com/apache/incubator-hawq/pull/835#discussion_r73841782
  
    --- Diff: src/backend/cdb/executormgr.c ---
    @@ -864,29 +864,42 @@ addOneOption(PQExpBufferData *buffer, struct 
config_generic * guc)
                        {
                                struct config_string *sguc = (struct 
config_string *) guc;
                                const char *str = *sguc->variable;
    -                           int                     j,
    -                                                   start,
    -                                                   end;
    -                           char            temp[1024];
    +                           unsigned int     j, start, size;
    +                           char                    *temp;
     
    -                           end = strlen(str);
    +                           size = 256;
    --- End diff --
    
    256 does not have special meaning. It is just a rough initial size so that 
realloc() is seldom called.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to