mirror of
https://github.com/VictoriaMetrics/VictoriaMetrics.git
synced 2024-11-21 14:44:00 +00:00
app/vmagent: fix panic on shutdown when no global deduplication is co… (#6308)
…nfigured
Follow-up for f153f54d11
Signed-off-by: hagen1778 <roman@victoriametrics.com>
This commit is contained in:
parent
bc4a0b8f37
commit
7dc18bf67a
1 changed files with 4 additions and 2 deletions
|
@ -377,8 +377,10 @@ func Stop() {
|
|||
configReloaderWG.Wait()
|
||||
|
||||
sasGlobal.Load().MustStop()
|
||||
deduplicatorGlobal.MustStop()
|
||||
deduplicatorGlobal = nil
|
||||
if deduplicatorGlobal != nil {
|
||||
deduplicatorGlobal.MustStop()
|
||||
deduplicatorGlobal = nil
|
||||
}
|
||||
|
||||
for _, rwctx := range rwctxs {
|
||||
rwctx.MustStop()
|
||||
|
|
Loading…
Reference in a new issue