sync data first before stopping

This commit is contained in:
chrislu
2022-02-16 09:11:34 -08:00
parent 118d0e01a8
commit a129bda7d9
3 changed files with 28 additions and 0 deletions

View File

@@ -327,6 +327,9 @@ func (s *Store) CollectHeartbeat() *master_pb.Heartbeat {
func (s *Store) SetStopping() {
s.isStopping = true
for _, location := range s.Locations {
location.SetStopping()
}
}
func (s *Store) Close() {