hawq-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GodenYao <...@git.apache.org>
Subject [GitHub] incubator-hawq pull request: HAWQ-628. Return -1 instead of error.
Date Tue, 12 Apr 2016 20:36:04 GMT
Github user GodenYao commented on a diff in the pull request:

    --- Diff: src/backend/utils/adt/dbsize.c ---
    @@ -180,9 +180,7 @@ calculate_database_size(Oid dbOid)
     	Assert(Gp_role != GP_ROLE_EXECUTE);
     	if (dbOid == HcatalogDbOid)
    -		ereport(ERROR,
    -			errmsg("database hcatalog (OID 6120) is reserved")));
    +		return -1;
    --- End diff --
    can you add comments here to explain why we return -1 instead of erroring out

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.

View raw message