{"action":"created","issue":{"url":"https://api.github.com/repos/boltdb/bolt/issues/504","repository_url":"https://api.github.com/repos/boltdb/bolt","labels_url":"https://api.github.com/repos/boltdb/bolt/issues/504/labels{/name}","comments_url":"https://api.github.com/repos/boltdb/bolt/issues/504/comments","events_url":"https://api.github.com/repos/boltdb/bolt/issues/504/events","html_url":"https://github.com/boltdb/bolt/issues/504","id":130585411,"number":504,"title":"Windows: default options limit database to 64MB.","user":{"login":"ChrisHines","id":1060711,"avatar_url":"https://avatars.githubusercontent.com/u/1060711?v=3","gravatar_id":"","url":"https://api.github.com/users/ChrisHines","html_url":"https://github.com/ChrisHines","followers_url":"https://api.github.com/users/ChrisHines/followers","following_url":"https://api.github.com/users/ChrisHines/following{/other_user}","gists_url":"https://api.github.com/users/ChrisHines/gists{/gist_id}","starred_url":"https://api.github.com/users/ChrisHines/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChrisHines/subscriptions","organizations_url":"https://api.github.com/users/ChrisHines/orgs","repos_url":"https://api.github.com/users/ChrisHines/repos","events_url":"https://api.github.com/users/ChrisHines/events{/privacy}","received_events_url":"https://api.github.com/users/ChrisHines/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-02-02T06:07:39Z","updated_at":"2016-02-07T05:55:28Z","closed_at":null,"body":"Environment:\r\n\r\nOS: Windows 7\r\nGo: go version go1.5.1 windows/amd64\r\n\r\nSteps to reproduce:\r\n\r\n1. Open a new database with `nil` options.\r\n1. Create a bucket\r\n1. Repeatedly put new key/value pairs into the bucket.\r\n\r\nWhat happens:\r\n\r\nThe database file quickly grows to 64MB and then bolt returns an error:\r\n\r\n```\r\nfile resize error: truncate test.db: The requested operation cannot be performed on a file with a user-mapped section open.\r\n```\r\nWorkarounds: The error does not occur if the database is opened with the `NoGrowSync` option enabled.\r\n\r\nWhat was expected: The default options should work better on all platforms.\r\n"},"comment":{"url":"https://api.github.com/repos/boltdb/bolt/issues/comments/180957769","html_url":"https://github.com/boltdb/bolt/issues/504#issuecomment-180957769","issue_url":"https://api.github.com/repos/boltdb/bolt/issues/504","id":180957769,"user":{"login":"ChrisHines","id":1060711,"avatar_url":"https://avatars.githubusercontent.com/u/1060711?v=3","gravatar_id":"","url":"https://api.github.com/users/ChrisHines","html_url":"https://github.com/ChrisHines","followers_url":"https://api.github.com/users/ChrisHines/followers","following_url":"https://api.github.com/users/ChrisHines/following{/other_user}","gists_url":"https://api.github.com/users/ChrisHines/gists{/gist_id}","starred_url":"https://api.github.com/users/ChrisHines/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChrisHines/subscriptions","organizations_url":"https://api.github.com/users/ChrisHines/orgs","repos_url":"https://api.github.com/users/ChrisHines/repos","events_url":"https://api.github.com/users/ChrisHines/events{/privacy}","received_events_url":"https://api.github.com/users/ChrisHines/received_events","type":"User","site_admin":false},"created_at":"2016-02-07T05:55:28Z","updated_at":"2016-02-07T05:55:28Z","body":"@benbjohnson That commit does not exhibit the problem. I modified the code I posted above to drive a `git bisect` and got this bisect log:\r\n\r\n$ git bisect log\r\ngit bisect start\r\nbad: [ee4a0888a9abe7eefe5a0992ca4cb06864839873] Merge pull request #492 from boltdb/revert-491-arm64\r\ngood: [852d3024fa8d89dcc9a715bab6f4dcd7d59577dd] skip empty pages during cursor seek\r\ngood: [8b08bd4a8065cb7a240761c3683e8f837b06cc3c] test suite refactoring\r\nbad: [02c43da2b0661119d53bb25fedeaaa57c61043a7] Merge pull request #481 from gyuho/boltdb_typo\r\ngood: [694a82a9595845d376dd19ff5c24cab78801204b] Merge branch 'grow' of https://github.com/xiang90/bolt into xiang90-grow\r\nbad: [d8b06c0a7706affa05b729523827ebe9ba3d9def] Merge branch 'xiang90-grow'\r\ngood: [a122e1c02bae30d40559b4daf028e579fcc2017c] add AllocSize, minor grow() refactor\r\nfirst bad commit: [d8b06c0a7706affa05b729523827ebe9ba3d9def] Merge branch 'xiang90-grow'\r\n\r\nI have manually confirmed this result."}}