aboutsummaryrefslogtreecommitdiff
path: root/bolt_unix_solaris.go
diff options
context:
space:
mode:
authorBen Johnson <benbjohnson@yahoo.com>2016-03-25 08:58:56 -0600
committerBen Johnson <benbjohnson@yahoo.com>2016-03-25 10:53:30 -0600
commit2b4a0e28943f2dc71b7697cb86764b05e9919637 (patch)
treeda55ceb25e0642f44187e1ce5350054b570431be /bolt_unix_solaris.go
parentMerge pull request #542 from boltdb/remove-drone-badge (diff)
downloaddedo-2b4a0e28943f2dc71b7697cb86764b05e9919637.tar.gz
dedo-2b4a0e28943f2dc71b7697cb86764b05e9919637.tar.xz
set slice capacity
This commit sets the capacity on slices returned from `Bucket.Get()` to match the slice length. Previously the capacity would be the size of the mmap max size. This does not cause any backwards compatibility issues, however, it does allow users to `append()` to the returned slice since that will cause Go to realloc a new slice on the heap. Fixes #544
Diffstat (limited to 'bolt_unix_solaris.go')
0 files changed, 0 insertions, 0 deletions