{"action":"created","comment":{"url":"https://api.github.com/repos/cockroachdb/cockroach/pulls/comments/46297105","id":46297105,"diff_hunk":"@@ -33,6 +33,9 @@ type Batch struct {\n \t// The DB the batch is associated with. This field may be nil if the batch\n \t// was not created via DB.NewBatch or Txn.NewBatch.\n \tDB *DB\n+\t// The Txn the batch is associated with. This field may be nil if the batch\n+\t// was not created via Txn.NewBatch.\n+\tTxn *Txn","path":"client/batch.go","position":6,"original_position":6,"commit_id":"057bb892c0d700b1da9a156c17078846af69d22a","original_commit_id":"057bb892c0d700b1da9a156c17078846af69d22a","user":{"login":"tamird","id":1535036,"avatar_url":"https://avatars.githubusercontent.com/u/1535036?v=3","gravatar_id":"","url":"https://api.github.com/users/tamird","html_url":"https://github.com/tamird","followers_url":"https://api.github.com/users/tamird/followers","following_url":"https://api.github.com/users/tamird/following{/other_user}","gists_url":"https://api.github.com/users/tamird/gists{/gist_id}","starred_url":"https://api.github.com/users/tamird/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tamird/subscriptions","organizations_url":"https://api.github.com/users/tamird/orgs","repos_url":"https://api.github.com/users/tamird/repos","events_url":"https://api.github.com/users/tamird/events{/privacy}","received_events_url":"https://api.github.com/users/tamird/received_events","type":"User","site_admin":false},"body":"this doesn't need to be exported","created_at":"2015-12-01T16:05:07Z","updated_at":"2015-12-01T16:05:07Z","html_url":"https://github.com/cockroachdb/cockroach/pull/3203#discussion_r46297105","pull_request_url":"https://api.github.com/repos/cockroachdb/cockroach/pulls/3203","_links":{"self":{"href":"https://api.github.com/repos/cockroachdb/cockroach/pulls/comments/46297105"},"html":{"href":"https://github.com/cockroachdb/cockroach/pull/3203#discussion_r46297105"},"pull_request":{"href":"https://api.github.com/repos/cockroachdb/cockroach/pulls/3203"}}},"pull_request":{"url":"https://api.github.com/repos/cockroachdb/cockroach/pulls/3203","id":51542761,"html_url":"https://github.com/cockroachdb/cockroach/pull/3203","diff_url":"https://github.com/cockroachdb/cockroach/pull/3203.diff","patch_url":"https://github.com/cockroachdb/cockroach/pull/3203.patch","issue_url":"https://api.github.com/repos/cockroachdb/cockroach/issues/3203","number":3203,"state":"open","locked":false,"title":"Allow initializing client.Batch outside of txn retryable","user":{"login":"yaojingguo","id":516386,"avatar_url":"https://avatars.githubusercontent.com/u/516386?v=3","gravatar_id":"","url":"https://api.github.com/users/yaojingguo","html_url":"https://github.com/yaojingguo","followers_url":"https://api.github.com/users/yaojingguo/followers","following_url":"https://api.github.com/users/yaojingguo/following{/other_user}","gists_url":"https://api.github.com/users/yaojingguo/gists{/gist_id}","starred_url":"https://api.github.com/users/yaojingguo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yaojingguo/subscriptions","organizations_url":"https://api.github.com/users/yaojingguo/orgs","repos_url":"https://api.github.com/users/yaojingguo/repos","events_url":"https://api.github.com/users/yaojingguo/events{/privacy}","received_events_url":"https://api.github.com/users/yaojingguo/received_events","type":"User","site_admin":false},"body":"Fixes #3067\n\n<!-- Reviewable:start -->\n[<img src=\"https://reviewable.io/review_button.png\" height=40 alt=\"Review on Reviewable\"/>](https://reviewable.io/reviews/cockroachdb/cockroach/3203)\n<!-- Reviewable:end -->\n","created_at":"2015-11-23T16:07:44Z","updated_at":"2015-12-01T16:05:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"09e4d2dd9b240ca690c8754053dd632b1ef3b6e2","assignee":{"login":"petermattis","id":6201335,"avatar_url":"https://avatars.githubusercontent.com/u/6201335?v=3","gravatar_id":"","url":"https://api.github.com/users/petermattis","html_url":"https://github.com/petermattis","followers_url":"https://api.github.com/users/petermattis/followers","following_url":"https://api.github.com/users/petermattis/following{/other_user}","gists_url":"https://api.github.com/users/petermattis/gists{/gist_id}","starred_url":"https://api.github.com/users/petermattis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/petermattis/subscriptions","organizations_url":"https://api.github.com/users/petermattis/orgs","repos_url":"https://api.github.com/users/petermattis/repos","events_url":"https://api.github.com/users/petermattis/events{/privacy}","received_events_url":"https://api.github.com/users/petermattis/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/cockroachdb/cockroach/pulls/3203/commits","review_comments_url":"https://api.github.com/repos/cockroachdb/cockroach/pulls/3203/comments","review_comment_url":"https://api.github.com/repos/cockroachdb/cockroach/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cockroachdb/cockroach/issues/3203/comments","statuses_url":"https://api.github.com/repos/cockroachdb/cockroach/statuses/057bb892c0d700b1da9a156c17078846af69d22a","head":{"label":"yaojingguo:issue-3067","ref":"issue-3067","sha":"057bb892c0d700b1da9a156c17078846af69d22a","user":{"login":"yaojingguo","id":516386,"avatar_url":"https://avatars.githubusercontent.com/u/516386?v=3","gravatar_id":"","url":"https://api.github.com/users/yaojingguo","html_url":"https://github.com/yaojingguo","followers_url":"https://api.github.com/users/yaojingguo/followers","following_url":"https://api.github.com/users/yaojingguo/following{/other_user}","gists_url":"https://api.github.com/users/yaojingguo/gists{/gist_id}","starred_url":"https://api.github.com/users/yaojingguo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yaojingguo/subscriptions","organizations_url":"https://api.github.com/users/yaojingguo/orgs","repos_url":"https://api.github.com/users/yaojingguo/repos","events_url":"https://api.github.com/users/yaojingguo/events{/privacy}","received_events_url":"https://api.github.com/users/yaojingguo/received_events","type":"User","site_admin":false},"repo":{"id":44976005,"name":"cockroach","full_name":"yaojingguo/cockroach","owner":{"login":"yaojingguo","id":516386,"avatar_url":"https://avatars.githubusercontent.com/u/516386?v=3","gravatar_id":"","url":"https://api.github.com/users/yaojingguo","html_url":"https://github.com/yaojingguo","followers_url":"https://api.github.com/users/yaojingguo/followers","following_url":"https://api.github.com/users/yaojingguo/following{/other_user}","gists_url":"https://api.github.com/users/yaojingguo/gists{/gist_id}","starred_url":"https://api.github.com/users/yaojingguo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yaojingguo/subscriptions","organizations_url":"https://api.github.com/users/yaojingguo/orgs","repos_url":"https://api.github.com/users/yaojingguo/repos","events_url":"https://api.github.com/users/yaojingguo/events{/privacy}","received_events_url":"https://api.github.com/users/yaojingguo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/yaojingguo/cockroach","description":"A Scalable, Geo-Replicated, Transactional Datastore","fork":true,"url":"https://api.github.com/repos/yaojingguo/cockroach","forks_url":"https://api.github.com/repos/yaojingguo/cockroach/forks","keys_url":"https://api.github.com/repos/yaojingguo/cockroach/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yaojingguo/cockroach/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yaojingguo/cockroach/teams","hooks_url":"https://api.github.com/repos/yaojingguo/cockroach/hooks","issue_events_url":"https://api.github.com/repos/yaojingguo/cockroach/issues/events{/number}","events_url":"https://api.github.com/repos/yaojingguo/cockroach/events","assignees_url":"https://api.github.com/repos/yaojingguo/cockroach/assignees{/user}","branches_url":"https://api.github.com/repos/yaojingguo/cockroach/branches{/branch}","tags_url":"https://api.github.com/repos/yaojingguo/cockroach/tags","blobs_url":"https://api.github.com/repos/yaojingguo/cockroach/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yaojingguo/cockroach/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yaojingguo/cockroach/git/refs{/sha}","trees_url":"https://api.github.com/repos/yaojingguo/cockroach/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yaojingguo/cockroach/statuses/{sha}","languages_url":"https://api.github.com/repos/yaojingguo/cockroach/languages","stargazers_url":"https://api.github.com/repos/yaojingguo/cockroach/stargazers","contributors_url":"https://api.github.com/repos/yaojingguo/cockroach/contributors","subscribers_url":"https://api.github.com/repos/yaojingguo/cockroach/subscribers","subscription_url":"https://api.github.com/repos/yaojingguo/cockroach/subscription","commits_url":"https://api.github.com/repos/yaojingguo/cockroach/commits{/sha}","git_commits_url":"https://api.github.com/repos/yaojingguo/cockroach/git/commits{/sha}","comments_url":"https://api.github.com/repos/yaojingguo/cockroach/comments{/number}","issue_comment_url":"https://api.github.com/repos/yaojingguo/cockroach/issues/comments{/number}","contents_url":"https://api.github.com/repos/yaojingguo/cockroach/contents/{+path}","compare_url":"https://api.github.com/repos/yaojingguo/cockroach/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yaojingguo/cockroach/merges","archive_url":"https://api.github.com/repos/yaojingguo/cockroach/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yaojingguo/cockroach/downloads","issues_url":"https://api.github.com/repos/yaojingguo/cockroach/issues{/number}","pulls_url":"https://api.github.com/repos/yaojingguo/cockroach/pulls{/number}","milestones_url":"https://api.github.com/repos/yaojingguo/cockroach/milestones{/number}","notifications_url":"https://api.github.com/repos/yaojingguo/cockroach/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yaojingguo/cockroach/labels{/name}","releases_url":"https://api.github.com/repos/yaojingguo/cockroach/releases{/id}","created_at":"2015-10-26T15:02:31Z","updated_at":"2015-10-26T15:02:37Z","pushed_at":"2015-12-01T03:50:30Z","git_url":"git://github.com/yaojingguo/cockroach.git","ssh_url":"git@github.com:yaojingguo/cockroach.git","clone_url":"https://github.com/yaojingguo/cockroach.git","svn_url":"https://github.com/yaojingguo/cockroach","homepage":null,"size":47088,"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":"763c14383ac7241119d5e43dde4f5d7076e555ad","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-12-01T15:28:09Z","pushed_at":"2015-12-01T15:41:40Z","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":57396,"stargazers_count":5787,"watchers_count":5787,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":486,"mirror_url":null,"open_issues_count":215,"forks":486,"open_issues":215,"watchers":5787,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cockroachdb/cockroach/pulls/3203"},"html":{"href":"https://github.com/cockroachdb/cockroach/pull/3203"},"issue":{"href":"https://api.github.com/repos/cockroachdb/cockroach/issues/3203"},"comments":{"href":"https://api.github.com/repos/cockroachdb/cockroach/issues/3203/comments"},"review_comments":{"href":"https://api.github.com/repos/cockroachdb/cockroach/pulls/3203/comments"},"review_comment":{"href":"https://api.github.com/repos/cockroachdb/cockroach/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cockroachdb/cockroach/pulls/3203/commits"},"statuses":{"href":"https://api.github.com/repos/cockroachdb/cockroach/statuses/057bb892c0d700b1da9a156c17078846af69d22a"}}}}