Github user jiny2 commented on a diff in the pull request:

    https://github.com/apache/incubator-hawq/pull/34#discussion_r42980358
  
    --- Diff: src/backend/utils/misc/guc.c ---
    @@ -13520,4 +13542,38 @@ assign_gp_temporary_directory_mark_error(int 
newval, bool doit, GucSource source
        return true;
     }
     
    +static const char *
    +assign_hawq_rm_stmt_vseg_memory(const char *newval, bool doit, GucSource 
source)
    +{
    +   if (doit)
    +   {
    +           int32_t newvalmb = 0;
    +       int parseres = FUNC_RETURN_OK;
    +       SimpString valuestr;
    +       setSimpleStringRef(&valuestr, newval, strlen(newval));
    +       parseres = SimpleStringToStorageSizeMB(&valuestr, &newvalmb);
    +
    +       if ( parseres != FUNC_RETURN_OK )
    +       {
    +           return NULL; /* Not valid format of memory quota. */
    +       }
    +
    +       if ( newvalmb == 64   ||
    +            newvalmb == 128  ||
    +                    newvalmb == 256  ||
    +                    newvalmb == 512  ||
    +                    newvalmb == 1024 ||
    +                    newvalmb == 2048 ||
    +                    newvalmb == 4096 ||
    +                    newvalmb == 8192 ||
    +                    newvalmb == 16384 )
    --- End diff --
    
    fixed.


---
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