mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-01-20 07:19:17 +01:00
lib/logstorage: add nil check for ptwHot.pt (#4896)
(cherry picked from commit cde5029bce
)
This commit is contained in:
parent
40b1f9611c
commit
db0ae3fffb
@ -395,7 +395,7 @@ func (s *Storage) MustAddRows(lr *LogRows) {
|
||||
}
|
||||
s.partitionsLock.Unlock()
|
||||
|
||||
if ptwHot != nil {
|
||||
if ptwHot != nil && ptwHot.pt != nil {
|
||||
if ptwHot.canAddAllRows(lr) {
|
||||
ptwHot.pt.mustAddRows(lr)
|
||||
ptwHot.decRef()
|
||||
|
Loading…
Reference in New Issue
Block a user