mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-02-09 15:27:11 +00:00
lib/logstorage: add nil check for ptwHot.pt (#4896)
(cherry picked from commit cde5029bce
)
This commit is contained in:
parent
40b1f9611c
commit
db0ae3fffb
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue