{"action":"opened","number":536,"pull_request":{"url":"https://api.github.com/repos/cockroachdb/cockroach/pulls/536","id":32427345,"html_url":"https://github.com/cockroachdb/cockroach/pull/536","diff_url":"https://github.com/cockroachdb/cockroach/pull/536.diff","patch_url":"https://github.com/cockroachdb/cockroach/pull/536.patch","issue_url":"https://api.github.com/repos/cockroachdb/cockroach/issues/536","number":536,"state":"open","locked":false,"title":"Simplify the logic of multi range scan with MaxResults","user":{"login":"joezxy","id":8863505,"avatar_url":"https://avatars.githubusercontent.com/u/8863505?v=3","gravatar_id":"","url":"https://api.github.com/users/joezxy","html_url":"https://github.com/joezxy","followers_url":"https://api.github.com/users/joezxy/followers","following_url":"https://api.github.com/users/joezxy/following{/other_user}","gists_url":"https://api.github.com/users/joezxy/gists{/gist_id}","starred_url":"https://api.github.com/users/joezxy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joezxy/subscriptions","organizations_url":"https://api.github.com/users/joezxy/orgs","repos_url":"https://api.github.com/users/joezxy/repos","events_url":"https://api.github.com/users/joezxy/events{/privacy}","received_events_url":"https://api.github.com/users/joezxy/received_events","type":"User","site_admin":false},"body":"In DistSender.Send(), use SetBound() to specify the correct remaining max number of results for calls to ranges after the first, possibly resulting in less network traffic and removing the requirement that we truncate any results.\r\n\r\nThis PR is for issue #527 \r\n","created_at":"2015-04-01T15:02:39Z","updated_at":"2015-04-01T15:02:39Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/cockroachdb/cockroach/pulls/536/commits","review_comments_url":"https://api.github.com/repos/cockroachdb/cockroach/pulls/536/comments","review_comment_url":"https://api.github.com/repos/cockroachdb/cockroach/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cockroachdb/cockroach/issues/536/comments","statuses_url":"https://api.github.com/repos/cockroachdb/cockroach/statuses/8a0b909dd5b1bd7039a6ccf4d9e5614691b797fd","head":{"label":"joezxy:max_scan_simplify","ref":"max_scan_simplify","sha":"8a0b909dd5b1bd7039a6ccf4d9e5614691b797fd","user":{"login":"joezxy","id":8863505,"avatar_url":"https://avatars.githubusercontent.com/u/8863505?v=3","gravatar_id":"","url":"https://api.github.com/users/joezxy","html_url":"https://github.com/joezxy","followers_url":"https://api.github.com/users/joezxy/followers","following_url":"https://api.github.com/users/joezxy/following{/other_user}","gists_url":"https://api.github.com/users/joezxy/gists{/gist_id}","starred_url":"https://api.github.com/users/joezxy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joezxy/subscriptions","organizations_url":"https://api.github.com/users/joezxy/orgs","repos_url":"https://api.github.com/users/joezxy/repos","events_url":"https://api.github.com/users/joezxy/events{/privacy}","received_events_url":"https://api.github.com/users/joezxy/received_events","type":"User","site_admin":false},"repo":{"id":31775742,"name":"cockroach","full_name":"joezxy/cockroach","owner":{"login":"joezxy","id":8863505,"avatar_url":"https://avatars.githubusercontent.com/u/8863505?v=3","gravatar_id":"","url":"https://api.github.com/users/joezxy","html_url":"https://github.com/joezxy","followers_url":"https://api.github.com/users/joezxy/followers","following_url":"https://api.github.com/users/joezxy/following{/other_user}","gists_url":"https://api.github.com/users/joezxy/gists{/gist_id}","starred_url":"https://api.github.com/users/joezxy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joezxy/subscriptions","organizations_url":"https://api.github.com/users/joezxy/orgs","repos_url":"https://api.github.com/users/joezxy/repos","events_url":"https://api.github.com/users/joezxy/events{/privacy}","received_events_url":"https://api.github.com/users/joezxy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/joezxy/cockroach","description":"A Scalable, Geo-Replicated, Transactional Datastore","fork":true,"url":"https://api.github.com/repos/joezxy/cockroach","forks_url":"https://api.github.com/repos/joezxy/cockroach/forks","keys_url":"https://api.github.com/repos/joezxy/cockroach/keys{/key_id}","collaborators_url":"https://api.github.com/repos/joezxy/cockroach/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/joezxy/cockroach/teams","hooks_url":"https://api.github.com/repos/joezxy/cockroach/hooks","issue_events_url":"https://api.github.com/repos/joezxy/cockroach/issues/events{/number}","events_url":"https://api.github.com/repos/joezxy/cockroach/events","assignees_url":"https://api.github.com/repos/joezxy/cockroach/assignees{/user}","branches_url":"https://api.github.com/repos/joezxy/cockroach/branches{/branch}","tags_url":"https://api.github.com/repos/joezxy/cockroach/tags","blobs_url":"https://api.github.com/repos/joezxy/cockroach/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/joezxy/cockroach/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/joezxy/cockroach/git/refs{/sha}","trees_url":"https://api.github.com/repos/joezxy/cockroach/git/trees{/sha}","statuses_url":"https://api.github.com/repos/joezxy/cockroach/statuses/{sha}","languages_url":"https://api.github.com/repos/joezxy/cockroach/languages","stargazers_url":"https://api.github.com/repos/joezxy/cockroach/stargazers","contributors_url":"https://api.github.com/repos/joezxy/cockroach/contributors","subscribers_url":"https://api.github.com/repos/joezxy/cockroach/subscribers","subscription_url":"https://api.github.com/repos/joezxy/cockroach/subscription","commits_url":"https://api.github.com/repos/joezxy/cockroach/commits{/sha}","git_commits_url":"https://api.github.com/repos/joezxy/cockroach/git/commits{/sha}","comments_url":"https://api.github.com/repos/joezxy/cockroach/comments{/number}","issue_comment_url":"https://api.github.com/repos/joezxy/cockroach/issues/comments{/number}","contents_url":"https://api.github.com/repos/joezxy/cockroach/contents/{+path}","compare_url":"https://api.github.com/repos/joezxy/cockroach/compare/{base}...{head}","merges_url":"https://api.github.com/repos/joezxy/cockroach/merges","archive_url":"https://api.github.com/repos/joezxy/cockroach/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/joezxy/cockroach/downloads","issues_url":"https://api.github.com/repos/joezxy/cockroach/issues{/number}","pulls_url":"https://api.github.com/repos/joezxy/cockroach/pulls{/number}","milestones_url":"https://api.github.com/repos/joezxy/cockroach/milestones{/number}","notifications_url":"https://api.github.com/repos/joezxy/cockroach/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/joezxy/cockroach/labels{/name}","releases_url":"https://api.github.com/repos/joezxy/cockroach/releases{/id}","created_at":"2015-03-06T15:33:36Z","updated_at":"2015-04-01T13:31:22Z","pushed_at":"2015-04-01T14:56:42Z","git_url":"git://github.com/joezxy/cockroach.git","ssh_url":"git@github.com:joezxy/cockroach.git","clone_url":"https://github.com/joezxy/cockroach.git","svn_url":"https://github.com/joezxy/cockroach","homepage":null,"size":11382,"stargazers_count":0,"watchers_count":0,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"cockroachdb:master","ref":"master","sha":"34f270cb3162c4e9f26a7191cba595bdfa228d2b","user":{"login":"cockroachdb","id":6748139,"avatar_url":"https://avatars.githubusercontent.com/u/6748139?v=3","gravatar_id":"","url":"https://api.github.com/users/cockroachdb","html_url":"https://github.com/cockroachdb","followers_url":"https://api.github.com/users/cockroachdb/followers","following_url":"https://api.github.com/users/cockroachdb/following{/other_user}","gists_url":"https://api.github.com/users/cockroachdb/gists{/gist_id}","starred_url":"https://api.github.com/users/cockroachdb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cockroachdb/subscriptions","organizations_url":"https://api.github.com/users/cockroachdb/orgs","repos_url":"https://api.github.com/users/cockroachdb/repos","events_url":"https://api.github.com/users/cockroachdb/events{/privacy}","received_events_url":"https://api.github.com/users/cockroachdb/received_events","type":"Organization","site_admin":false},"repo":{"id":16563587,"name":"cockroach","full_name":"cockroachdb/cockroach","owner":{"login":"cockroachdb","id":6748139,"avatar_url":"https://avatars.githubusercontent.com/u/6748139?v=3","gravatar_id":"","url":"https://api.github.com/users/cockroachdb","html_url":"https://github.com/cockroachdb","followers_url":"https://api.github.com/users/cockroachdb/followers","following_url":"https://api.github.com/users/cockroachdb/following{/other_user}","gists_url":"https://api.github.com/users/cockroachdb/gists{/gist_id}","starred_url":"https://api.github.com/users/cockroachdb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cockroachdb/subscriptions","organizations_url":"https://api.github.com/users/cockroachdb/orgs","repos_url":"https://api.github.com/users/cockroachdb/repos","events_url":"https://api.github.com/users/cockroachdb/events{/privacy}","received_events_url":"https://api.github.com/users/cockroachdb/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cockroachdb/cockroach","description":"A Scalable, Geo-Replicated, Transactional Datastore","fork":false,"url":"https://api.github.com/repos/cockroachdb/cockroach","forks_url":"https://api.github.com/repos/cockroachdb/cockroach/forks","keys_url":"https://api.github.com/repos/cockroachdb/cockroach/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cockroachdb/cockroach/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cockroachdb/cockroach/teams","hooks_url":"https://api.github.com/repos/cockroachdb/cockroach/hooks","issue_events_url":"https://api.github.com/repos/cockroachdb/cockroach/issues/events{/number}","events_url":"https://api.github.com/repos/cockroachdb/cockroach/events","assignees_url":"https://api.github.com/repos/cockroachdb/cockroach/assignees{/user}","branches_url":"https://api.github.com/repos/cockroachdb/cockroach/branches{/branch}","tags_url":"https://api.github.com/repos/cockroachdb/cockroach/tags","blobs_url":"https://api.github.com/repos/cockroachdb/cockroach/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cockroachdb/cockroach/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cockroachdb/cockroach/git/refs{/sha}","trees_url":"https://api.github.com/repos/cockroachdb/cockroach/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cockroachdb/cockroach/statuses/{sha}","languages_url":"https://api.github.com/repos/cockroachdb/cockroach/languages","stargazers_url":"https://api.github.com/repos/cockroachdb/cockroach/stargazers","contributors_url":"https://api.github.com/repos/cockroachdb/cockroach/contributors","subscribers_url":"https://api.github.com/repos/cockroachdb/cockroach/subscribers","subscription_url":"https://api.github.com/repos/cockroachdb/cockroach/subscription","commits_url":"https://api.github.com/repos/cockroachdb/cockroach/commits{/sha}","git_commits_url":"https://api.github.com/repos/cockroachdb/cockroach/git/commits{/sha}","comments_url":"https://api.github.com/repos/cockroachdb/cockroach/comments{/number}","issue_comment_url":"https://api.github.com/repos/cockroachdb/cockroach/issues/comments{/number}","contents_url":"https://api.github.com/repos/cockroachdb/cockroach/contents/{+path}","compare_url":"https://api.github.com/repos/cockroachdb/cockroach/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cockroachdb/cockroach/merges","archive_url":"https://api.github.com/repos/cockroachdb/cockroach/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cockroachdb/cockroach/downloads","issues_url":"https://api.github.com/repos/cockroachdb/cockroach/issues{/number}","pulls_url":"https://api.github.com/repos/cockroachdb/cockroach/pulls{/number}","milestones_url":"https://api.github.com/repos/cockroachdb/cockroach/milestones{/number}","notifications_url":"https://api.github.com/repos/cockroachdb/cockroach/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cockroachdb/cockroach/labels{/name}","releases_url":"https://api.github.com/repos/cockroachdb/cockroach/releases{/id}","created_at":"2014-02-06T00:18:47Z","updated_at":"2015-04-01T06:27:36Z","pushed_at":"2015-04-01T14:27:19Z","git_url":"git://github.com/cockroachdb/cockroach.git","ssh_url":"git@github.com:cockroachdb/cockroach.git","clone_url":"https://github.com/cockroachdb/cockroach.git","svn_url":"https://github.com/cockroachdb/cockroach","homepage":null,"size":18838,"stargazers_count":3235,"watchers_count":3235,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":239,"mirror_url":null,"open_issues_count":42,"forks":239,"open_issues":42,"watchers":3235,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cockroachdb/cockroach/pulls/536"},"html":{"href":"https://github.com/cockroachdb/cockroach/pull/536"},"issue":{"href":"https://api.github.com/repos/cockroachdb/cockroach/issues/536"},"comments":{"href":"https://api.github.com/repos/cockroachdb/cockroach/issues/536/comments"},"review_comments":{"href":"https://api.github.com/repos/cockroachdb/cockroach/pulls/536/comments"},"review_comment":{"href":"https://api.github.com/repos/cockroachdb/cockroach/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cockroachdb/cockroach/pulls/536/commits"},"statuses":{"href":"https://api.github.com/repos/cockroachdb/cockroach/statuses/8a0b909dd5b1bd7039a6ccf4d9e5614691b797fd"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":19,"deletions":33,"changed_files":2}}