Merge pull request #284 from hongchaodeng/f
cluster: fix checkBackupExist
This commit is contained in:
Коммит
90b0fd51ad
|
@ -253,7 +253,7 @@ func requestBackupNow(httpClient *http.Client, addr string) bool {
|
|||
}
|
||||
|
||||
func checkBackupExist(httpClient *http.Client, addr string) (bool, error) {
|
||||
resp, err := httpClient.Head(fmt.Sprintf("http://%s/backupnow", addr))
|
||||
resp, err := httpClient.Head(fmt.Sprintf("http://%s/backup", addr))
|
||||
if err != nil {
|
||||
log.Errorf("check backup (%s) failed: %v", addr, err)
|
||||
return false, err
|
||||
|
|
Загрузка…
Ссылка в новой задаче