[volume] Add new volumes to HUP(reload) signal (#3755)

Add new volumes to HUP(reload) signal
This commit is contained in:
Konstantin Lebedev
2022-09-29 00:44:13 +05:00
committed by GitHub
parent 47fd5d3fa1
commit 301b678147
4 changed files with 42 additions and 13 deletions

View File

@@ -361,6 +361,12 @@ func (s *Store) SetStopping() {
}
}
func (s *Store) LoadNewVolumes() {
for _, location := range s.Locations {
location.loadExistingVolumes(s.NeedleMapKind)
}
}
func (s *Store) Close() {
for _, location := range s.Locations {
location.Close()