mirror of
https://github.com/etcd-io/etcd.git
synced 2024-09-27 06:25:44 +00:00
client: 410 is a vaild response for member.Remove
When removing a member, etcdserver might return 410 that indicates the member has been removed. To client, 410 is a vaild response since the client might do internal retry.
This commit is contained in:
parent
b6aa31a5b6
commit
91c45c3243
@ -166,7 +166,7 @@ func (m *httpMembersAPI) Remove(ctx context.Context, memberID string) error {
|
||||
return err
|
||||
}
|
||||
|
||||
return assertStatusCode(resp.StatusCode, http.StatusNoContent)
|
||||
return assertStatusCode(resp.StatusCode, http.StatusNoContent, http.StatusGone)
|
||||
}
|
||||
|
||||
type membersAPIActionList struct{}
|
||||
|
Loading…
x
Reference in New Issue
Block a user