Enforce maximum string value length of 512MB

This commit is contained in:
Pieter Noordhuis
2010-12-09 17:16:10 +01:00
parent 3c1bf4957e
commit 076f88d657
2 changed files with 18 additions and 14 deletions

View File

@ -410,7 +410,7 @@ start_server {tags {"basic"}} {
test "SETBIT with out of range bit offset" {
r del mykey
assert_error "*out of range*" {r setbit mykey [expr 8*1024*1024*1024] 1}
assert_error "*out of range*" {r setbit mykey [expr 4*1024*1024*1024] 1}
assert_error "*out of range*" {r setbit mykey -1 1}
}