querylog: fix docs
This commit is contained in:
parent
d5a8f24d5b
commit
319da34de4
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue