lib/logstorage: fix panic (#4620)

This commit is contained in:
Dmytro Kozlov 2023-07-13 09:53:41 +02:00 committed by Aliaksandr Valialkin
parent 09cc17a6b1
commit 3d0f846a79
No known key found for this signature in database
GPG key ID: A72BEC6CD3D0DED1

View file

@ -37,6 +37,9 @@ const maxInmemoryPartsPerPartition = 20
// datadb represents a database with log data
type datadb struct {
// mergeIdx is used for generating unique directory names for parts
mergeIdx uint64
inmemoryMergesTotal uint64
inmemoryActiveMerges uint64
fileMergesTotal uint64
@ -45,9 +48,6 @@ type datadb struct {
// pt is the partition the datadb belongs to
pt *partition
// mergeIdx is used for generating unique directory names for parts
mergeIdx uint64
// path is the path to the directory with log data
path string