querylog: fix docs

This commit is contained in:
Stanislav Chzhen 2023-03-03 17:34:38 +03:00
parent d5a8f24d5b
commit 319da34de4
1 changed files with 0 additions and 4 deletions

View File

@ -177,8 +177,6 @@ func (l *queryLog) handleQueryLogConfig(w http.ResponseWriter, r *http.Request)
l.lock.Lock() l.lock.Lock()
defer l.lock.Unlock() defer l.lock.Unlock()
// Copy data, modify it, then activate. Other threads (readers) don't need
// to use this lock.
conf := *l.conf conf := *l.conf
if newConf.Enabled != aghalg.NBNull { if newConf.Enabled != aghalg.NBNull {
conf.Enabled = newConf.Enabled == aghalg.NBTrue conf.Enabled = newConf.Enabled == aghalg.NBTrue
@ -243,8 +241,6 @@ func (l *queryLog) handlePutQueryLogConfig(w http.ResponseWriter, r *http.Reques
l.lock.Lock() l.lock.Lock()
defer l.lock.Unlock() defer l.lock.Unlock()
// Copy data, modify it, then activate. Other threads (readers) don't need
// to use this lock.
conf := *l.conf conf := *l.conf
conf.Ignored = set conf.Ignored = set