hawq-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shiv...@apache.org
Subject incubator-hawq git commit: HAWQ-972.Setup multi handle after setting all conf
Date Mon, 01 Aug 2016 23:17:45 GMT
Repository: incubator-hawq
Updated Branches:
  refs/heads/master 78c276657 -> 117bb5bf6


HAWQ-972.Setup multi handle after setting all conf


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

Branch: refs/heads/master
Commit: 117bb5bf6607e35046622e4cc79b4b8cf3e0392a
Parents: 78c2766
Author: Kavinder Dhaliwal <kavinderd@gmail.com>
Authored: Mon Aug 1 15:24:19 2016 -0700
Committer: Kavinder Dhaliwal <kavinderd@gmail.com>
Committed: Mon Aug 1 15:24:19 2016 -0700

----------------------------------------------------------------------
 src/backend/access/external/libchurl.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-hawq/blob/117bb5bf/src/backend/access/external/libchurl.c
----------------------------------------------------------------------
diff --git a/src/backend/access/external/libchurl.c b/src/backend/access/external/libchurl.c
index b0a76bb..2d4aab4 100644
--- a/src/backend/access/external/libchurl.c
+++ b/src/backend/access/external/libchurl.c
@@ -331,9 +331,6 @@ CHURL_HANDLE churl_init(const char* url, CHURL_HEADERS headers)
 	set_curl_option(context, CURLOPT_HEADERDATA, context);
 	churl_headers_set(context, headers);
 
-	print_http_headers(headers);
-	setup_multi_handle(context);
-
 	return (CHURL_HANDLE)context;
 }
 
@@ -350,6 +347,8 @@ CHURL_HANDLE churl_init_upload(const char* url, CHURL_HEADERS headers)
 	churl_headers_append(headers, "Transfer-Encoding", "chunked");
 	churl_headers_append(headers, "Expect", "100-continue");
 
+	print_http_headers(headers);
+	setup_multi_handle(context);
 	return (CHURL_HANDLE)context;
 }
 
@@ -359,6 +358,8 @@ CHURL_HANDLE churl_init_download(const char* url, CHURL_HEADERS headers)
 
 	context->upload = false;
 
+	print_http_headers(headers);
+	setup_multi_handle(context);
 	return (CHURL_HANDLE)context;
 }
 


Mime
View raw message