Icinga / icingadb

Icinga configuration and state database supporting multiple environments
https://icinga.com
GNU General Public License v2.0
60 stars 21 forks source link

Panic in PipeConfigChunks #263

Closed julianbrost closed 3 years ago

julianbrost commented 3 years ago

Looks like my PR #251 introduced a bug which can lead to a panic:

panic: runtime error: slice bounds out of range [:3] with capacity 1

goroutine 2886 [running]:
github.com/Icinga/icingadb/connection.(*RDBWrapper).PipeConfigChunks.func3(0xc0003b1860, 0xc00006f630, 0x1f4, 0xc0007733e0)
    /idbcp/connection/redis.go:661 +0x33a
created by github.com/Icinga/icingadb/connection.(*RDBWrapper).PipeConfigChunks
    /idbcp/connection/redis.go:653 +0x145
N-o-X commented 3 years ago

Shouldn't be a problem anymore with the RC2 changes in place.