()
| 220 | } |
| 221 | |
| 222 | func (s *Service) saveProgress() { |
| 223 | progressFile := filepath.Join(conf.GConf.WorkingRoot, string(s.dbID)+progressFileSuffix) |
| 224 | _ = ioutil.WriteFile(progressFile, []byte(fmt.Sprintf("%d", s.getProgress())), 0644) |
| 225 | } |
| 226 | |
| 227 | func (s *Service) stop() { |
| 228 | if s.stopCh != nil { |