aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Johnson <benbjohnson@yahoo.com>2015-10-28 12:16:16 -0600
committerBen Johnson <benbjohnson@yahoo.com>2015-10-28 12:16:16 -0600
commit1786b6ae2ff6304ee29303520ca27ba5068604a4 (patch)
tree6f4916d8338bbac18056df2ae0b7b2e287e2927e
parentMerge branch 'hvnsweeting-hvn-fix-doc' (diff)
downloaddedo-1786b6ae2ff6304ee29303520ca27ba5068604a4.tar.gz
dedo-1786b6ae2ff6304ee29303520ca27ba5068604a4.tar.xz
lower MaxValue to 2GB
This commit changes the maximum value size to 2GB so that tests can run on 32-bit machines. There's really no reason to write a 2GB+ value to Bolt. It's not terribly efficient for large values.
-rw-r--r--bucket.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/bucket.go b/bucket.go
index 4dea157..d2f8c52 100644
--- a/bucket.go
+++ b/bucket.go
@@ -11,7 +11,7 @@ const (
MaxKeySize = 32768
// MaxValueSize is the maximum length of a value, in bytes.
- MaxValueSize = 4294967295
+ MaxValueSize = (1 << 31) - 2
)
const (