hawq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hubertzh...@apache.org
Subject incubator-hawq git commit: HAWQ-1356. Add waring when user does not have usage privilege of namespace.
Date Fri, 24 Feb 2017 02:32:52 GMT
Repository: incubator-hawq
Updated Branches:
  refs/heads/master 21d78d37a -> 52d5b553d


HAWQ-1356. Add waring when user does not have usage privilege of namespace.

Signed-off-by: Chuling Wang <wangchunling14@126.com>


Project: http://git-wip-us.apache.org/repos/asf/incubator-hawq/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-hawq/commit/52d5b553
Tree: http://git-wip-us.apache.org/repos/asf/incubator-hawq/tree/52d5b553
Diff: http://git-wip-us.apache.org/repos/asf/incubator-hawq/diff/52d5b553

Branch: refs/heads/master
Commit: 52d5b553d6f3f8729e8c7eab227cbc3b4b3dfe0e
Parents: 21d78d3
Author: Hubert Zhang <hubertzhang@apache.org>
Authored: Fri Feb 24 10:31:56 2017 +0800
Committer: Chuling Wang <wangchunling14@126.com>
Committed: Fri Feb 24 10:31:56 2017 +0800

----------------------------------------------------------------------
 src/backend/catalog/namespace.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/52d5b553/src/backend/catalog/namespace.c
----------------------------------------------------------------------
diff --git a/src/backend/catalog/namespace.c b/src/backend/catalog/namespace.c
index 3a90054..e4ee588 100644
--- a/src/backend/catalog/namespace.c
+++ b/src/backend/catalog/namespace.c
@@ -1939,7 +1939,7 @@ static void checkNamespaceInternal(List **oidlist, Oid namespaceId,
Oid roleid)
 		*oidlist = lappend_oid(*oidlist, namespaceId);
 	}
 	else {
-		if (OidIsValid(namespaceId)) {
+		if (OidIsValid(namespaceId) && aclType == HAWQ_ACL_RANGER) {
 			elog(WARNING, "usage privilege of namespace %s is required.",
 					getNamespaceNameByOid(namespaceId));
 		}


Mime
View raw message