+ new setting "dns.querylog_memsize"

* set 1000 entries by default (not 5000)
This commit is contained in:
Simon Zolin
2019-11-08 12:31:50 +03:00
parent 31ffae7717
commit 7e45c2fc24
6 changed files with 15 additions and 8 deletions

View File

@@ -27,7 +27,7 @@ func (l *queryLog) flushLogBuffer(fullFlush bool) error {
// flush remainder to file
l.bufferLock.Lock()
needFlush := len(l.buffer) >= logBufferCap
needFlush := len(l.buffer) >= int(l.conf.MemSize)
if !needFlush && !fullFlush {
l.bufferLock.Unlock()
return nil