lib/streamaggr: properly return output key from getOutputKey

The bug has been introduced in cc2647d212

(cherry picked from commit b617dc9c0b)
This commit is contained in:
Aliaksandr Valialkin 2024-05-14 17:47:19 +02:00 committed by hagen1778
parent 955d36357c
commit 5dbc4ad5ef
No known key found for this signature in database
GPG Key ID: 3BF75F3741CA9640

View File

@ -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)
}