hawq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jiny2 <...@git.apache.org>
Subject [GitHub] incubator-hawq pull request: HAWQ-47. Make user able to set statem...
Date Mon, 26 Oct 2015 11:07:00 GMT
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message