{"action":"closed","number":515,"pull_request":{"url":"https://api.github.com/repos/boltdb/bolt/pulls/515","id":59971362,"html_url":"https://github.com/boltdb/bolt/pull/515","diff_url":"https://github.com/boltdb/bolt/pull/515.diff","patch_url":"https://github.com/boltdb/bolt/pull/515.patch","issue_url":"https://api.github.com/repos/boltdb/bolt/issues/515","number":515,"state":"closed","locked":false,"title":"Use tx.meta during Tx.WriteTo()","user":{"login":"benbjohnson","id":118015,"avatar_url":"https://avatars.githubusercontent.com/u/118015?v=3","gravatar_id":"","url":"https://api.github.com/users/benbjohnson","html_url":"https://github.com/benbjohnson","followers_url":"https://api.github.com/users/benbjohnson/followers","following_url":"https://api.github.com/users/benbjohnson/following{/other_user}","gists_url":"https://api.github.com/users/benbjohnson/gists{/gist_id}","starred_url":"https://api.github.com/users/benbjohnson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benbjohnson/subscriptions","organizations_url":"https://api.github.com/users/benbjohnson/orgs","repos_url":"https://api.github.com/users/benbjohnson/repos","events_url":"https://api.github.com/users/benbjohnson/events{/privacy}","received_events_url":"https://api.github.com/users/benbjohnson/received_events","type":"User","site_admin":false},"body":"## Overview\r\n\r\nThis commit changes `Tx.WriteTo()` to use the transaction's in-memory meta page instead of copying from the disk. This is needed because the transaction uses the size from its meta page but writes the current meta page on disk which may have allocated additional pages since the transaction started.\r\n\r\nFixes #513\r\n\r\n/cc @xiang90 ","created_at":"2016-02-19T16:22:46Z","updated_at":"2016-03-10T19:42:47Z","closed_at":"2016-03-10T19:42:47Z","merged_at":"2016-03-10T19:42:47Z","merge_commit_sha":"49b3aa6f47548903717c109d4c967dd904842e00","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/boltdb/bolt/pulls/515/commits","review_comments_url":"https://api.github.com/repos/boltdb/bolt/pulls/515/comments","review_comment_url":"https://api.github.com/repos/boltdb/bolt/pulls/comments{/number}","comments_url":"https://api.github.com/repos/boltdb/bolt/issues/515/comments","statuses_url":"https://api.github.com/repos/boltdb/bolt/statuses/522043366c6e60fc92776c09658a20b7e22ac120","head":{"label":"benbjohnson:meta-write-to","ref":"meta-write-to","sha":"522043366c6e60fc92776c09658a20b7e22ac120","user":{"login":"benbjohnson","id":118015,"avatar_url":"https://avatars.githubusercontent.com/u/118015?v=3","gravatar_id":"","url":"https://api.github.com/users/benbjohnson","html_url":"https://github.com/benbjohnson","followers_url":"https://api.github.com/users/benbjohnson/followers","following_url":"https://api.github.com/users/benbjohnson/following{/other_user}","gists_url":"https://api.github.com/users/benbjohnson/gists{/gist_id}","starred_url":"https://api.github.com/users/benbjohnson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benbjohnson/subscriptions","organizations_url":"https://api.github.com/users/benbjohnson/orgs","repos_url":"https://api.github.com/users/benbjohnson/repos","events_url":"https://api.github.com/users/benbjohnson/events{/privacy}","received_events_url":"https://api.github.com/users/benbjohnson/received_events","type":"User","site_admin":false},"repo":{"id":16391700,"name":"bolt","full_name":"benbjohnson/bolt","owner":{"login":"benbjohnson","id":118015,"avatar_url":"https://avatars.githubusercontent.com/u/118015?v=3","gravatar_id":"","url":"https://api.github.com/users/benbjohnson","html_url":"https://github.com/benbjohnson","followers_url":"https://api.github.com/users/benbjohnson/followers","following_url":"https://api.github.com/users/benbjohnson/following{/other_user}","gists_url":"https://api.github.com/users/benbjohnson/gists{/gist_id}","starred_url":"https://api.github.com/users/benbjohnson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benbjohnson/subscriptions","organizations_url":"https://api.github.com/users/benbjohnson/orgs","repos_url":"https://api.github.com/users/benbjohnson/repos","events_url":"https://api.github.com/users/benbjohnson/events{/privacy}","received_events_url":"https://api.github.com/users/benbjohnson/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/benbjohnson/bolt","description":"A low-level key/value database for Go.","fork":true,"url":"https://api.github.com/repos/benbjohnson/bolt","forks_url":"https://api.github.com/repos/benbjohnson/bolt/forks","keys_url":"https://api.github.com/repos/benbjohnson/bolt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/benbjohnson/bolt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/benbjohnson/bolt/teams","hooks_url":"https://api.github.com/repos/benbjohnson/bolt/hooks","issue_events_url":"https://api.github.com/repos/benbjohnson/bolt/issues/events{/number}","events_url":"https://api.github.com/repos/benbjohnson/bolt/events","assignees_url":"https://api.github.com/repos/benbjohnson/bolt/assignees{/user}","branches_url":"https://api.github.com/repos/benbjohnson/bolt/branches{/branch}","tags_url":"https://api.github.com/repos/benbjohnson/bolt/tags","blobs_url":"https://api.github.com/repos/benbjohnson/bolt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/benbjohnson/bolt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/benbjohnson/bolt/git/refs{/sha}","trees_url":"https://api.github.com/repos/benbjohnson/bolt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/benbjohnson/bolt/statuses/{sha}","languages_url":"https://api.github.com/repos/benbjohnson/bolt/languages","stargazers_url":"https://api.github.com/repos/benbjohnson/bolt/stargazers","contributors_url":"https://api.github.com/repos/benbjohnson/bolt/contributors","subscribers_url":"https://api.github.com/repos/benbjohnson/bolt/subscribers","subscription_url":"https://api.github.com/repos/benbjohnson/bolt/subscription","commits_url":"https://api.github.com/repos/benbjohnson/bolt/commits{/sha}","git_commits_url":"https://api.github.com/repos/benbjohnson/bolt/git/commits{/sha}","comments_url":"https://api.github.com/repos/benbjohnson/bolt/comments{/number}","issue_comment_url":"https://api.github.com/repos/benbjohnson/bolt/issues/comments{/number}","contents_url":"https://api.github.com/repos/benbjohnson/bolt/contents/{+path}","compare_url":"https://api.github.com/repos/benbjohnson/bolt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/benbjohnson/bolt/merges","archive_url":"https://api.github.com/repos/benbjohnson/bolt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/benbjohnson/bolt/downloads","issues_url":"https://api.github.com/repos/benbjohnson/bolt/issues{/number}","pulls_url":"https://api.github.com/repos/benbjohnson/bolt/pulls{/number}","milestones_url":"https://api.github.com/repos/benbjohnson/bolt/milestones{/number}","notifications_url":"https://api.github.com/repos/benbjohnson/bolt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/benbjohnson/bolt/labels{/name}","releases_url":"https://api.github.com/repos/benbjohnson/bolt/releases{/id}","deployments_url":"https://api.github.com/repos/benbjohnson/bolt/deployments","created_at":"2014-01-30T21:35:57Z","updated_at":"2015-09-30T14:41:54Z","pushed_at":"2016-03-10T19:17:48Z","git_url":"git://github.com/benbjohnson/bolt.git","ssh_url":"git@github.com:benbjohnson/bolt.git","clone_url":"https://github.com/benbjohnson/bolt.git","svn_url":"https://github.com/benbjohnson/bolt","homepage":null,"size":1194,"stargazers_count":10,"watchers_count":10,"language":"Go","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":10,"default_branch":"master"}},"base":{"label":"boltdb:master","ref":"master","sha":"b514920f8f2e0a68f857e5a12c774f385a59aef9","user":{"login":"boltdb","id":6539737,"avatar_url":"https://avatars.githubusercontent.com/u/6539737?v=3","gravatar_id":"","url":"https://api.github.com/users/boltdb","html_url":"https://github.com/boltdb","followers_url":"https://api.github.com/users/boltdb/followers","following_url":"https://api.github.com/users/boltdb/following{/other_user}","gists_url":"https://api.github.com/users/boltdb/gists{/gist_id}","starred_url":"https://api.github.com/users/boltdb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boltdb/subscriptions","organizations_url":"https://api.github.com/users/boltdb/orgs","repos_url":"https://api.github.com/users/boltdb/repos","events_url":"https://api.github.com/users/boltdb/events{/privacy}","received_events_url":"https://api.github.com/users/boltdb/received_events","type":"Organization","site_admin":false},"repo":{"id":15345331,"name":"bolt","full_name":"boltdb/bolt","owner":{"login":"boltdb","id":6539737,"avatar_url":"https://avatars.githubusercontent.com/u/6539737?v=3","gravatar_id":"","url":"https://api.github.com/users/boltdb","html_url":"https://github.com/boltdb","followers_url":"https://api.github.com/users/boltdb/followers","following_url":"https://api.github.com/users/boltdb/following{/other_user}","gists_url":"https://api.github.com/users/boltdb/gists{/gist_id}","starred_url":"https://api.github.com/users/boltdb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/boltdb/subscriptions","organizations_url":"https://api.github.com/users/boltdb/orgs","repos_url":"https://api.github.com/users/boltdb/repos","events_url":"https://api.github.com/users/boltdb/events{/privacy}","received_events_url":"https://api.github.com/users/boltdb/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/boltdb/bolt","description":"An embedded key/value database for Go.","fork":false,"url":"https://api.github.com/repos/boltdb/bolt","forks_url":"https://api.github.com/repos/boltdb/bolt/forks","keys_url":"https://api.github.com/repos/boltdb/bolt/keys{/key_id}","collaborators_url":"https://api.github.com/repos/boltdb/bolt/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/boltdb/bolt/teams","hooks_url":"https://api.github.com/repos/boltdb/bolt/hooks","issue_events_url":"https://api.github.com/repos/boltdb/bolt/issues/events{/number}","events_url":"https://api.github.com/repos/boltdb/bolt/events","assignees_url":"https://api.github.com/repos/boltdb/bolt/assignees{/user}","branches_url":"https://api.github.com/repos/boltdb/bolt/branches{/branch}","tags_url":"https://api.github.com/repos/boltdb/bolt/tags","blobs_url":"https://api.github.com/repos/boltdb/bolt/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/boltdb/bolt/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/boltdb/bolt/git/refs{/sha}","trees_url":"https://api.github.com/repos/boltdb/bolt/git/trees{/sha}","statuses_url":"https://api.github.com/repos/boltdb/bolt/statuses/{sha}","languages_url":"https://api.github.com/repos/boltdb/bolt/languages","stargazers_url":"https://api.github.com/repos/boltdb/bolt/stargazers","contributors_url":"https://api.github.com/repos/boltdb/bolt/contributors","subscribers_url":"https://api.github.com/repos/boltdb/bolt/subscribers","subscription_url":"https://api.github.com/repos/boltdb/bolt/subscription","commits_url":"https://api.github.com/repos/boltdb/bolt/commits{/sha}","git_commits_url":"https://api.github.com/repos/boltdb/bolt/git/commits{/sha}","comments_url":"https://api.github.com/repos/boltdb/bolt/comments{/number}","issue_comment_url":"https://api.github.com/repos/boltdb/bolt/issues/comments{/number}","contents_url":"https://api.github.com/repos/boltdb/bolt/contents/{+path}","compare_url":"https://api.github.com/repos/boltdb/bolt/compare/{base}...{head}","merges_url":"https://api.github.com/repos/boltdb/bolt/merges","archive_url":"https://api.github.com/repos/boltdb/bolt/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/boltdb/bolt/downloads","issues_url":"https://api.github.com/repos/boltdb/bolt/issues{/number}","pulls_url":"https://api.github.com/repos/boltdb/bolt/pulls{/number}","milestones_url":"https://api.github.com/repos/boltdb/bolt/milestones{/number}","notifications_url":"https://api.github.com/repos/boltdb/bolt/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/boltdb/bolt/labels{/name}","releases_url":"https://api.github.com/repos/boltdb/bolt/releases{/id}","deployments_url":"https://api.github.com/repos/boltdb/bolt/deployments","created_at":"2013-12-20T18:26:14Z","updated_at":"2016-03-10T18:59:12Z","pushed_at":"2016-03-10T19:42:47Z","git_url":"git://github.com/boltdb/bolt.git","ssh_url":"git@github.com:boltdb/bolt.git","clone_url":"https://github.com/boltdb/bolt.git","svn_url":"https://github.com/boltdb/bolt","homepage":"","size":1590,"stargazers_count":3803,"watchers_count":3803,"language":"Go","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":295,"mirror_url":null,"open_issues_count":58,"forks":295,"open_issues":58,"watchers":3803,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/boltdb/bolt/pulls/515"},"html":{"href":"https://github.com/boltdb/bolt/pull/515"},"issue":{"href":"https://api.github.com/repos/boltdb/bolt/issues/515"},"comments":{"href":"https://api.github.com/repos/boltdb/bolt/issues/515/comments"},"review_comments":{"href":"https://api.github.com/repos/boltdb/bolt/pulls/515/comments"},"review_comment":{"href":"https://api.github.com/repos/boltdb/bolt/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/boltdb/bolt/pulls/515/commits"},"statuses":{"href":"https://api.github.com/repos/boltdb/bolt/statuses/522043366c6e60fc92776c09658a20b7e22ac120"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"benbjohnson","id":118015,"avatar_url":"https://avatars.githubusercontent.com/u/118015?v=3","gravatar_id":"","url":"https://api.github.com/users/benbjohnson","html_url":"https://github.com/benbjohnson","followers_url":"https://api.github.com/users/benbjohnson/followers","following_url":"https://api.github.com/users/benbjohnson/following{/other_user}","gists_url":"https://api.github.com/users/benbjohnson/gists{/gist_id}","starred_url":"https://api.github.com/users/benbjohnson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benbjohnson/subscriptions","organizations_url":"https://api.github.com/users/benbjohnson/orgs","repos_url":"https://api.github.com/users/benbjohnson/repos","events_url":"https://api.github.com/users/benbjohnson/events{/privacy}","received_events_url":"https://api.github.com/users/benbjohnson/received_events","type":"User","site_admin":false},"comments":21,"review_comments":0,"commits":1,"additions":28,"deletions":6,"changed_files":2}}