From 3d0f846a79ffee2c15a0e91b285877a62da9d932 Mon Sep 17 00:00:00 2001 From: Dmytro Kozlov Date: Thu, 13 Jul 2023 09:53:41 +0200 Subject: [PATCH] lib/logstorage: fix panic (#4620) --- lib/logstorage/datadb.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/logstorage/datadb.go b/lib/logstorage/datadb.go index 9bf9ce26f..d23c05eed 100644 --- a/lib/logstorage/datadb.go +++ b/lib/logstorage/datadb.go @@ -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