mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-01-05 22:32:20 +01:00
lib/streamaggr: properly return output key from getOutputKey
The bug has been introduced incc2647d212
(cherry picked from commitb617dc9c0b
)
This commit is contained in:
parent
955d36357c
commit
5dbc4ad5ef
@ -871,6 +871,7 @@ func getOutputKey(key string) string {
|
|||||||
if nSize <= 0 {
|
if nSize <= 0 {
|
||||||
logger.Panicf("BUG: cannot unmarshal inputKeyLen from uvarint")
|
logger.Panicf("BUG: cannot unmarshal inputKeyLen from uvarint")
|
||||||
}
|
}
|
||||||
|
src = src[nSize:]
|
||||||
outputKey := src[inputKeyLen:]
|
outputKey := src[inputKeyLen:]
|
||||||
return bytesutil.ToUnsafeString(outputKey)
|
return bytesutil.ToUnsafeString(outputKey)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user