mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2025-01-10 15:14:09 +00:00
lib/logstorage: add nil check for ptwHot.pt (#4896)
This commit is contained in:
parent
501d8e1978
commit
cde5029bce
1 changed files with 1 additions and 1 deletions
|
@ -395,7 +395,7 @@ func (s *Storage) MustAddRows(lr *LogRows) {
|
||||||
}
|
}
|
||||||
s.partitionsLock.Unlock()
|
s.partitionsLock.Unlock()
|
||||||
|
|
||||||
if ptwHot != nil {
|
if ptwHot != nil && ptwHot.pt != nil {
|
||||||
if ptwHot.canAddAllRows(lr) {
|
if ptwHot.canAddAllRows(lr) {
|
||||||
ptwHot.pt.mustAddRows(lr)
|
ptwHot.pt.mustAddRows(lr)
|
||||||
ptwHot.decRef()
|
ptwHot.decRef()
|
||||||
|
|
Loading…
Reference in a new issue