app/vlselect: follow-up for 0514091948 (#6004)

removes println lines

(cherry picked from commit 43b5d8bc7a)
This commit is contained in:
Nikolay 2024-03-22 08:46:40 +01:00 committed by hagen1778
parent 7a5f3e8ef9
commit 60d64edd6e
No known key found for this signature in database
GPG Key ID: 3BF75F3741CA9640
2 changed files with 1 additions and 2 deletions

View File

@ -123,7 +123,6 @@ func (sw *sortWriter) writeToUnderlyingWriterLocked(p []byte) bool {
} }
var linesLeft int var linesLeft int
p, linesLeft = trimLines(p, sw.maxLines-sw.linesWritten) p, linesLeft = trimLines(p, sw.maxLines-sw.linesWritten)
println("DEBUG: end trimLines", string(p), linesLeft)
sw.linesWritten += linesLeft sw.linesWritten += linesLeft
} }
if _, err := sw.w.Write(p); err != nil { if _, err := sw.w.Write(p); err != nil {
@ -133,7 +132,6 @@ func (sw *sortWriter) writeToUnderlyingWriterLocked(p []byte) bool {
} }
func trimLines(p []byte, maxLines int) ([]byte, int) { func trimLines(p []byte, maxLines int) ([]byte, int) {
println("DEBUG: start trimLines", string(p), maxLines)
if maxLines <= 0 { if maxLines <= 0 {
return nil, 0 return nil, 0
} }

View File

@ -19,6 +19,7 @@ according to [these docs](https://docs.victoriametrics.com/VictoriaLogs/QuickSta
## tip ## tip
* BUGFIX: removes `println` lines after 0514091948cf8e00e42f44318c0e5e5b63b6388f.
## [v0.5.0](https://github.com/VictoriaMetrics/VictoriaMetrics/releases/tag/v0.5.0-victorialogs) ## [v0.5.0](https://github.com/VictoriaMetrics/VictoriaMetrics/releases/tag/v0.5.0-victorialogs)
Released at 2024-03-01 Released at 2024-03-01