{"action":"created","comment":{"url":"https://api.github.com/repos/apache/incubator-hawq/pulls/comments/59659665","id":59659665,"diff_hunk":"@@ -770,6 +770,30 @@ RebuildTupleForRelation(QueryContextInfo *cxt)\n }\n \n /*\n+ * Deserialize the Namespace data\n+ */\n+static void\n+RebuildNamespace(QueryContextInfo *cxt)\n+{\n+\n+\tint len;\n+\tchar buffer[4], *binary;\n+\tReadData(cxt, buffer, sizeof(buffer), TRUE);\n+\n+\tlen = (int) ntohl(*(uint32 *) buffer);\n+\tbinary = palloc(len);\n+\tif(ReadData(cxt, binary, len, TRUE))\n+\t{\n+\t\tStringInfoData buffer;\n+\t\tinitStringInfoOfString(&buffer, binary, len);\n+\t\tdfs_address = strdup(buffer.data);","path":"src/backend/cdb/cdbquerycontextdispatching.c","position":38,"original_position":38,"commit_id":"3e4fb382c60a14ae6a84ca052590093c81bcfd37","original_commit_id":"3e4fb382c60a14ae6a84ca052590093c81bcfd37","user":{"login":"kavinderd","id":449917,"avatar_url":"https://avatars.githubusercontent.com/u/449917?v=3","gravatar_id":"","url":"https://api.github.com/users/kavinderd","html_url":"https://github.com/kavinderd","followers_url":"https://api.github.com/users/kavinderd/followers","following_url":"https://api.github.com/users/kavinderd/following{/other_user}","gists_url":"https://api.github.com/users/kavinderd/gists{/gist_id}","starred_url":"https://api.github.com/users/kavinderd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kavinderd/subscriptions","organizations_url":"https://api.github.com/users/kavinderd/orgs","repos_url":"https://api.github.com/users/kavinderd/repos","events_url":"https://api.github.com/users/kavinderd/events{/privacy}","received_events_url":"https://api.github.com/users/kavinderd/received_events","type":"User","site_admin":false},"body":"Good point, no need for `buffer`. I'll update this","created_at":"2016-04-14T03:37:03Z","updated_at":"2016-04-14T03:37:03Z","html_url":"https://github.com/apache/incubator-hawq/pull/503#discussion_r59659665","pull_request_url":"https://api.github.com/repos/apache/incubator-hawq/pulls/503","_links":{"self":{"href":"https://api.github.com/repos/apache/incubator-hawq/pulls/comments/59659665"},"html":{"href":"https://github.com/apache/incubator-hawq/pull/503#discussion_r59659665"},"pull_request":{"href":"https://api.github.com/repos/apache/incubator-hawq/pulls/503"}}},"pull_request":{"url":"https://api.github.com/repos/apache/incubator-hawq/pulls/503","id":64121481,"html_url":"https://github.com/apache/incubator-hawq/pull/503","diff_url":"https://github.com/apache/incubator-hawq/pull/503.diff","patch_url":"https://github.com/apache/incubator-hawq/pull/503.patch","issue_url":"https://api.github.com/repos/apache/incubator-hawq/issues/503","number":503,"state":"closed","locked":false,"title":"HAWQ-462. Dispatch dfs_address from master to segment in pxf secure f…","user":{"login":"kavinderd","id":449917,"avatar_url":"https://avatars.githubusercontent.com/u/449917?v=3","gravatar_id":"","url":"https://api.github.com/users/kavinderd","html_url":"https://github.com/kavinderd","followers_url":"https://api.github.com/users/kavinderd/followers","following_url":"https://api.github.com/users/kavinderd/following{/other_user}","gists_url":"https://api.github.com/users/kavinderd/gists{/gist_id}","starred_url":"https://api.github.com/users/kavinderd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kavinderd/subscriptions","organizations_url":"https://api.github.com/users/kavinderd/orgs","repos_url":"https://api.github.com/users/kavinderd/repos","events_url":"https://api.github.com/users/kavinderd/events{/privacy}","received_events_url":"https://api.github.com/users/kavinderd/received_events","type":"User","site_admin":false},"body":"…ilesystem case\r\n\r\nSet global var dfs_address on segment after deserialization","created_at":"2016-03-25T01:29:17Z","updated_at":"2016-04-14T03:37:03Z","closed_at":"2016-04-04T19:31:42Z","merged_at":null,"merge_commit_sha":"ce8bcf54072533ff9d70cbb83b0f1a8ea92466f3","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/apache/incubator-hawq/pulls/503/commits","review_comments_url":"https://api.github.com/repos/apache/incubator-hawq/pulls/503/comments","review_comment_url":"https://api.github.com/repos/apache/incubator-hawq/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apache/incubator-hawq/issues/503/comments","statuses_url":"https://api.github.com/repos/apache/incubator-hawq/statuses/3e4fb382c60a14ae6a84ca052590093c81bcfd37","head":{"label":"kavinderd:HAWQ-462","ref":"HAWQ-462","sha":"3e4fb382c60a14ae6a84ca052590093c81bcfd37","user":{"login":"kavinderd","id":449917,"avatar_url":"https://avatars.githubusercontent.com/u/449917?v=3","gravatar_id":"","url":"https://api.github.com/users/kavinderd","html_url":"https://github.com/kavinderd","followers_url":"https://api.github.com/users/kavinderd/followers","following_url":"https://api.github.com/users/kavinderd/following{/other_user}","gists_url":"https://api.github.com/users/kavinderd/gists{/gist_id}","starred_url":"https://api.github.com/users/kavinderd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kavinderd/subscriptions","organizations_url":"https://api.github.com/users/kavinderd/orgs","repos_url":"https://api.github.com/users/kavinderd/repos","events_url":"https://api.github.com/users/kavinderd/events{/privacy}","received_events_url":"https://api.github.com/users/kavinderd/received_events","type":"User","site_admin":false},"repo":{"id":52920830,"name":"incubator-hawq","full_name":"kavinderd/incubator-hawq","owner":{"login":"kavinderd","id":449917,"avatar_url":"https://avatars.githubusercontent.com/u/449917?v=3","gravatar_id":"","url":"https://api.github.com/users/kavinderd","html_url":"https://github.com/kavinderd","followers_url":"https://api.github.com/users/kavinderd/followers","following_url":"https://api.github.com/users/kavinderd/following{/other_user}","gists_url":"https://api.github.com/users/kavinderd/gists{/gist_id}","starred_url":"https://api.github.com/users/kavinderd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kavinderd/subscriptions","organizations_url":"https://api.github.com/users/kavinderd/orgs","repos_url":"https://api.github.com/users/kavinderd/repos","events_url":"https://api.github.com/users/kavinderd/events{/privacy}","received_events_url":"https://api.github.com/users/kavinderd/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kavinderd/incubator-hawq","description":"Mirror of Apache HAWQ (Incubating)","fork":true,"url":"https://api.github.com/repos/kavinderd/incubator-hawq","forks_url":"https://api.github.com/repos/kavinderd/incubator-hawq/forks","keys_url":"https://api.github.com/repos/kavinderd/incubator-hawq/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kavinderd/incubator-hawq/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kavinderd/incubator-hawq/teams","hooks_url":"https://api.github.com/repos/kavinderd/incubator-hawq/hooks","issue_events_url":"https://api.github.com/repos/kavinderd/incubator-hawq/issues/events{/number}","events_url":"https://api.github.com/repos/kavinderd/incubator-hawq/events","assignees_url":"https://api.github.com/repos/kavinderd/incubator-hawq/assignees{/user}","branches_url":"https://api.github.com/repos/kavinderd/incubator-hawq/branches{/branch}","tags_url":"https://api.github.com/repos/kavinderd/incubator-hawq/tags","blobs_url":"https://api.github.com/repos/kavinderd/incubator-hawq/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kavinderd/incubator-hawq/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kavinderd/incubator-hawq/git/refs{/sha}","trees_url":"https://api.github.com/repos/kavinderd/incubator-hawq/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kavinderd/incubator-hawq/statuses/{sha}","languages_url":"https://api.github.com/repos/kavinderd/incubator-hawq/languages","stargazers_url":"https://api.github.com/repos/kavinderd/incubator-hawq/stargazers","contributors_url":"https://api.github.com/repos/kavinderd/incubator-hawq/contributors","subscribers_url":"https://api.github.com/repos/kavinderd/incubator-hawq/subscribers","subscription_url":"https://api.github.com/repos/kavinderd/incubator-hawq/subscription","commits_url":"https://api.github.com/repos/kavinderd/incubator-hawq/commits{/sha}","git_commits_url":"https://api.github.com/repos/kavinderd/incubator-hawq/git/commits{/sha}","comments_url":"https://api.github.com/repos/kavinderd/incubator-hawq/comments{/number}","issue_comment_url":"https://api.github.com/repos/kavinderd/incubator-hawq/issues/comments{/number}","contents_url":"https://api.github.com/repos/kavinderd/incubator-hawq/contents/{+path}","compare_url":"https://api.github.com/repos/kavinderd/incubator-hawq/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kavinderd/incubator-hawq/merges","archive_url":"https://api.github.com/repos/kavinderd/incubator-hawq/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kavinderd/incubator-hawq/downloads","issues_url":"https://api.github.com/repos/kavinderd/incubator-hawq/issues{/number}","pulls_url":"https://api.github.com/repos/kavinderd/incubator-hawq/pulls{/number}","milestones_url":"https://api.github.com/repos/kavinderd/incubator-hawq/milestones{/number}","notifications_url":"https://api.github.com/repos/kavinderd/incubator-hawq/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kavinderd/incubator-hawq/labels{/name}","releases_url":"https://api.github.com/repos/kavinderd/incubator-hawq/releases{/id}","deployments_url":"https://api.github.com/repos/kavinderd/incubator-hawq/deployments","created_at":"2016-03-02T00:30:55Z","updated_at":"2016-03-02T00:31:25Z","pushed_at":"2016-04-14T03:17:38Z","git_url":"git://github.com/kavinderd/incubator-hawq.git","ssh_url":"git@github.com:kavinderd/incubator-hawq.git","clone_url":"https://github.com/kavinderd/incubator-hawq.git","svn_url":"https://github.com/kavinderd/incubator-hawq","homepage":null,"size":150312,"stargazers_count":0,"watchers_count":0,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"apache:master","ref":"master","sha":"e8fcfb0c0b350ec83d9cb30a2510993b68e00fc7","user":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"repo":{"id":41952293,"name":"incubator-hawq","full_name":"apache/incubator-hawq","owner":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apache/incubator-hawq","description":"Mirror of Apache HAWQ (Incubating)","fork":false,"url":"https://api.github.com/repos/apache/incubator-hawq","forks_url":"https://api.github.com/repos/apache/incubator-hawq/forks","keys_url":"https://api.github.com/repos/apache/incubator-hawq/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apache/incubator-hawq/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apache/incubator-hawq/teams","hooks_url":"https://api.github.com/repos/apache/incubator-hawq/hooks","issue_events_url":"https://api.github.com/repos/apache/incubator-hawq/issues/events{/number}","events_url":"https://api.github.com/repos/apache/incubator-hawq/events","assignees_url":"https://api.github.com/repos/apache/incubator-hawq/assignees{/user}","branches_url":"https://api.github.com/repos/apache/incubator-hawq/branches{/branch}","tags_url":"https://api.github.com/repos/apache/incubator-hawq/tags","blobs_url":"https://api.github.com/repos/apache/incubator-hawq/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apache/incubator-hawq/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apache/incubator-hawq/git/refs{/sha}","trees_url":"https://api.github.com/repos/apache/incubator-hawq/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apache/incubator-hawq/statuses/{sha}","languages_url":"https://api.github.com/repos/apache/incubator-hawq/languages","stargazers_url":"https://api.github.com/repos/apache/incubator-hawq/stargazers","contributors_url":"https://api.github.com/repos/apache/incubator-hawq/contributors","subscribers_url":"https://api.github.com/repos/apache/incubator-hawq/subscribers","subscription_url":"https://api.github.com/repos/apache/incubator-hawq/subscription","commits_url":"https://api.github.com/repos/apache/incubator-hawq/commits{/sha}","git_commits_url":"https://api.github.com/repos/apache/incubator-hawq/git/commits{/sha}","comments_url":"https://api.github.com/repos/apache/incubator-hawq/comments{/number}","issue_comment_url":"https://api.github.com/repos/apache/incubator-hawq/issues/comments{/number}","contents_url":"https://api.github.com/repos/apache/incubator-hawq/contents/{+path}","compare_url":"https://api.github.com/repos/apache/incubator-hawq/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apache/incubator-hawq/merges","archive_url":"https://api.github.com/repos/apache/incubator-hawq/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apache/incubator-hawq/downloads","issues_url":"https://api.github.com/repos/apache/incubator-hawq/issues{/number}","pulls_url":"https://api.github.com/repos/apache/incubator-hawq/pulls{/number}","milestones_url":"https://api.github.com/repos/apache/incubator-hawq/milestones{/number}","notifications_url":"https://api.github.com/repos/apache/incubator-hawq/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apache/incubator-hawq/labels{/name}","releases_url":"https://api.github.com/repos/apache/incubator-hawq/releases{/id}","deployments_url":"https://api.github.com/repos/apache/incubator-hawq/deployments","created_at":"2015-09-05T07:00:05Z","updated_at":"2016-04-13T21:53:58Z","pushed_at":"2016-04-14T03:24:57Z","git_url":"git://github.com/apache/incubator-hawq.git","ssh_url":"git@github.com:apache/incubator-hawq.git","clone_url":"https://github.com/apache/incubator-hawq.git","svn_url":"https://github.com/apache/incubator-hawq","homepage":null,"size":151008,"stargazers_count":139,"watchers_count":139,"language":"C","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":115,"mirror_url":"git://git.apache.org/incubator-hawq.git","open_issues_count":13,"forks":115,"open_issues":13,"watchers":139,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/incubator-hawq/pulls/503"},"html":{"href":"https://github.com/apache/incubator-hawq/pull/503"},"issue":{"href":"https://api.github.com/repos/apache/incubator-hawq/issues/503"},"comments":{"href":"https://api.github.com/repos/apache/incubator-hawq/issues/503/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/incubator-hawq/pulls/503/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/incubator-hawq/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apache/incubator-hawq/pulls/503/commits"},"statuses":{"href":"https://api.github.com/repos/apache/incubator-hawq/statuses/3e4fb382c60a14ae6a84ca052590093c81bcfd37"}}}}