fix(client): if vol not exists, mount return failed immediately.

Signed-off-by: baihailong <baihailong@oppo.com>
This commit is contained in:
baihailong 2024-07-04 14:55:02 +08:00 committed by AmazingChi
parent f02d60be3d
commit 8f48f3ac85

View File

@ -374,7 +374,8 @@ func main() {
// load conf from master
for retry := 0; retry < MasterRetrys; retry++ {
err = loadConfFromMaster(opt)
if err != nil {
// if vol not exists, not retry
if err != nil && err.Error() != proto.ErrVolNotExists.Error() {
time.Sleep(5 * time.Second * time.Duration(retry+1))
} else {
break