提交 f85eed6a 编写于 作者: D Davies Liu

merge final stats together

上级 6e146dd8
......@@ -268,5 +268,6 @@ func fetchJobs(todo chan *object.Object, config *config.Config) {
todo <- obj
}
}
sendStats(config.Manager)
close(todo)
}
......@@ -597,9 +597,11 @@ func Sync(src, dst object.ObjectStorage, config *config.Config) error {
wg.Wait()
logger.Infof("Found: %d, copied: %d, deleted: %d, failed: %d", found, copied, deleted, failed)
if failed > 0 {
return fmt.Errorf("Failed to copy %d objects", failed)
}
if config.Manager == "" {
logger.Infof("Found: %d, copied: %d, deleted: %d, failed: %d", found, copied, deleted, failed)
}
return nil
}
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册