hawq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From odiache...@apache.org
Subject incubator-hawq git commit: HAWQ-1486. Catch error out on NULL condition for churl_init_download.
Date Thu, 15 Jun 2017 19:18:09 GMT
Repository: incubator-hawq
Updated Branches:
  refs/heads/master ee200369c -> b53484511


HAWQ-1486. Catch error out on NULL condition for churl_init_download.


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

Branch: refs/heads/master
Commit: b534845110f7cd0f54c17aba08c6ce951e703e19
Parents: ee20036
Author: John Gaskin <jgaskin@pivotal.io>
Authored: Thu Jun 15 12:17:26 2017 -0700
Committer: Oleksandr Diachenko <odiachenko@pivotal.io>
Committed: Thu Jun 15 12:17:26 2017 -0700

----------------------------------------------------------------------
 src/backend/access/external/pxfutils.c | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/b5348451/src/backend/access/external/pxfutils.c
----------------------------------------------------------------------
diff --git a/src/backend/access/external/pxfutils.c b/src/backend/access/external/pxfutils.c
index fb6b799..2f0171e 100644
--- a/src/backend/access/external/pxfutils.c
+++ b/src/backend/access/external/pxfutils.c
@@ -108,6 +108,8 @@ static void process_request(ClientContext* client_context, char *uri)
 
 	print_http_headers(client_context->http_headers);
 	client_context->handle = churl_init_download(uri, client_context->http_headers);
+	if (client_context->handle == NULL) 
+		elog(ERROR, "Unsuccessful connection to uri: %s", uri);
 	memset(buffer, 0, RAW_BUF_SIZE);
 	resetStringInfo(&(client_context->the_rest_buf));
 


Mime
View raw message