Pull request 2039: 6304-fix-ring-buffer
Updates #6304. Squashed commit of the following: commit 7382630404cf18ff45e54234134c192161f5d94a Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Oct 12 19:37:01 2023 +0300 all: upd chlog commit ff9a82a6872f3bd93fe89956c5441429c189bce7 Author: Stanislav Chzhen <s.chzhen@adguard.com> Date: Thu Oct 12 19:27:35 2023 +0300 querylog: fix ring buffer
This commit is contained in:
parent
d3fabdda40
commit
bb652cd9a1
|
@ -23,6 +23,12 @@ See also the [v0.107.40 GitHub milestone][ms-v0.107.40].
|
|||
NOTE: Add new changes BELOW THIS COMMENT.
|
||||
-->
|
||||
|
||||
### Fixed
|
||||
|
||||
- Panic on clearing query log ([#6304]).
|
||||
|
||||
[#6304]: https://github.com/AdguardTeam/AdGuardHome/issues/6304
|
||||
|
||||
<!--
|
||||
NOTE: Add new changes ABOVE THIS COMMENT.
|
||||
-->
|
||||
|
|
|
@ -139,7 +139,7 @@ func (l *queryLog) clear() {
|
|||
l.bufferLock.Lock()
|
||||
defer l.bufferLock.Unlock()
|
||||
|
||||
l.buffer = nil
|
||||
l.buffer.Clear()
|
||||
l.flushPending = false
|
||||
}()
|
||||
|
||||
|
|
Loading…
Reference in New Issue