aboutsummaryrefslogtreecommitdiff
path: root/db_test.go
diff options
context:
space:
mode:
authorBen Johnson <benbjohnson@yahoo.com>2015-01-12 08:06:42 -0700
committerBen Johnson <benbjohnson@yahoo.com>2015-01-12 08:06:42 -0700
commit8374d6adc5c51ae188af61302cc5d4f87cb02adf (patch)
treeff980f01722b8ec873113206dec419ffa4546534 /db_test.go
parentMerge pull request #281 from tgulacsi/master (diff)
downloaddedo-8374d6adc5c51ae188af61302cc5d4f87cb02adf.tar.gz
dedo-8374d6adc5c51ae188af61302cc5d4f87cb02adf.tar.xz
Add check for max mmap size.
The max mmap size was previous unchecked which resulted in a panic once the maximum size was reached. This commit adds a check for the max size when re-mapping and returns an error if the new map will exceed the size. Thanks to Tamás Gulácsi for testing out the change on i386.
Diffstat (limited to 'db_test.go')
0 files changed, 0 insertions, 0 deletions