hawq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From esp...@apache.org
Subject [34/50] [abbrv] incubator-hawq git commit: HAWQ-1279. Force to recompute namespace_path when enable_ranger
Date Fri, 03 Feb 2017 09:00:36 GMT
HAWQ-1279. Force to recompute namespace_path when enable_ranger


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

Branch: refs/heads/2.1.0.0-incubating
Commit: 21f1e29a43aee003e250e41375bf226fabbe2ce3
Parents: 8261c13
Author: interma <interma@outlook.com>
Authored: Wed Jan 18 13:13:52 2017 +0800
Committer: hubertzhang <hubertzhang@apache.org>
Committed: Thu Jan 19 10:56:01 2017 +0800

----------------------------------------------------------------------
 src/backend/catalog/namespace.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/21f1e29a/src/backend/catalog/namespace.c
----------------------------------------------------------------------
diff --git a/src/backend/catalog/namespace.c b/src/backend/catalog/namespace.c
index 4685bfa..7049d32 100644
--- a/src/backend/catalog/namespace.c
+++ b/src/backend/catalog/namespace.c
@@ -1933,7 +1933,12 @@ recomputeNamespacePath(void)
 	 * Do nothing if path is already valid.
 	 */
 	if (namespaceSearchPathValid && namespaceUser == roleid)
-		return;
+	{
+		if (!enable_ranger)
+			return;
+		else
+			elog(DEBUG3, "recompute search_path[%s] when enable_ranger", namespace_search_path);
+	}
 
 	/* Need a modifiable copy of namespace_search_path string */
 	rawname = pstrdup(namespace_search_path);


Mime
View raw message