Skip to content

Commit

Permalink
querylog: fix ring buffer
Browse files Browse the repository at this point in the history
  • Loading branch information
schzhn committed Oct 12, 2023
1 parent d3fabdd commit ff9a82a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/querylog/qlog.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ func (l *queryLog) clear() {
l.bufferLock.Lock()
defer l.bufferLock.Unlock()

l.buffer = nil
l.buffer.Clear()
l.flushPending = false
}()

Expand Down

0 comments on commit ff9a82a

Please sign in to comment.