when hashsize is Invalid, add an error log

pull/8/head
hangaoshuai 2018-07-25 12:01:34 +08:00
parent 9e0c4a6095
commit 18873a8d52
1 changed files with 1 additions and 1 deletions

View File

@ -111,7 +111,7 @@ func (set *IPSet) Validate() bool {
}
// check hash size value of ipset
if set.HashSize <= 0 {
glog.Errorf("Invalid hashsize value %d, should be >0", set.HashSize)
return false
}
// check max elem value of ipset