只使用lru
This commit is contained in:
parent
00f5a0449c
commit
e233e7c195
@ -45,7 +45,7 @@ func newPrepareStmtCache(PrepareStmtMaxSize int,
|
||||
var lru_size = DEFAULT_MAX_SIZE
|
||||
var lru_ttl = DEFAULT_TTL
|
||||
var stmts StmtStore
|
||||
if PrepareStmtMaxSize <= 0 {
|
||||
if PrepareStmtMaxSize < 0 {
|
||||
panic("PrepareStmtMaxSize must > 0")
|
||||
}
|
||||
if PrepareStmtMaxSize != 0 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user