mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
lib/streamaggr: properly return output key from getOutputKey
The bug has been introduced in cc2647d212
This commit is contained in:
parent
b0c1f3d819
commit
b617dc9c0b
1 changed files with 1 additions and 0 deletions
|
@ -871,6 +871,7 @@ func getOutputKey(key string) string {
|
|||
if nSize <= 0 {
|
||||
logger.Panicf("BUG: cannot unmarshal inputKeyLen from uvarint")
|
||||
}
|
||||
src = src[nSize:]
|
||||
outputKey := src[inputKeyLen:]
|
||||
return bytesutil.ToUnsafeString(outputKey)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue