mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-01-30 15:22:07 +00:00
lib/storage: dump incorrectly sorted items on a single line; this should simplify error reporting
This commit is contained in:
parent
5c2099ecfe
commit
e37f06dc52
1 changed files with 1 additions and 1 deletions
|
@ -2359,7 +2359,7 @@ func checkItemsSorted(items [][]byte) error {
|
|||
prevItem := items[0]
|
||||
for _, currItem := range items[1:] {
|
||||
if string(prevItem) > string(currItem) {
|
||||
return fmt.Errorf("items aren't sorted: prevItem > currItem\nprevItem=%X\ncurrItem=%X\nitems=%X", prevItem, currItem, items)
|
||||
return fmt.Errorf("items aren't sorted: prevItem > currItem; prevItem=%X; currItem=%X; items=%X", prevItem, currItem, items)
|
||||
}
|
||||
prevItem = currItem
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue