diff --git a/pkg/replica/replica.go b/pkg/replica/replica.go index 815b9bbcd..7e25ca5bd 100644 --- a/pkg/replica/replica.go +++ b/pkg/replica/replica.go @@ -920,8 +920,9 @@ func (r *Replica) createDisk(name string, userCreated bool, created string, labe rollbackFuncList := []func() error{} defer func() { if err == nil { - err = r.rmDisk(oldHead) - logrus.WithError(err).Errorf("Failed to remove old head %v", oldHead) + if errRm := r.rmDisk(oldHead); errRm != nil { + logrus.WithError(errRm).Warnf("Failed to remove old head %v", oldHead) + } return }