hawq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From m..@apache.org
Subject incubator-hawq git commit: HAWQ-1076. Using GP_ROLE_DISPATCH instead of SEGMENT_ROLE_MASTER for seg process type
Date Wed, 12 Oct 2016 03:57:15 GMT
Repository: incubator-hawq
Updated Branches:
  refs/heads/master b276946be -> 08ff1580c


HAWQ-1076. Using GP_ROLE_DISPATCH instead of SEGMENT_ROLE_MASTER for seg process type


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

Branch: refs/heads/master
Commit: 08ff1580c910aa4b99cf66c8b6d8801fb7572142
Parents: b276946
Author: Ming LI <mli@apache.org>
Authored: Wed Oct 12 11:56:53 2016 +0800
Committer: Ming LI <mli@apache.org>
Committed: Wed Oct 12 11:56:53 2016 +0800

----------------------------------------------------------------------
 src/backend/utils/cache/relcache.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/08ff1580/src/backend/utils/cache/relcache.c
----------------------------------------------------------------------
diff --git a/src/backend/utils/cache/relcache.c b/src/backend/utils/cache/relcache.c
index 95865fc..f2d17d5 100644
--- a/src/backend/utils/cache/relcache.c
+++ b/src/backend/utils/cache/relcache.c
@@ -3265,7 +3265,7 @@ AttrDefaultFetch(Relation relation)
 	caql_endscan(pcqCtx);
 	heap_close(adrel, AccessShareLock);
 
-	if (found != ndef && AmIMaster())
+	if (found != ndef && ( GP_ROLE_UTILITY==Gp_role || GP_ROLE_DISPATCH==Gp_role ))
 		elog(WARNING, "%d attrdef record(s) missing for rel %s",
 			 ndef - found, RelationGetRelationName(relation));
 }


Mime
View raw message