lib/logstorage: fix panic (#4620)

This commit is contained in:
Dmytro Kozlov 2023-07-13 09:53:41 +02:00 committed by GitHub
parent 20b18e9feb
commit 79c42814cf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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