Skip to content
This repository has been archived by the owner on Aug 18, 2019. It is now read-only.

fix(server): Set Server.pendingSnapshot back to nil after saving a snapshot fails. #1

Merged
merged 1 commit into from
Oct 30, 2014

Conversation

jstamerj
Copy link

When a snapshot fails to save, Sever.pendingSnapshot is not set to nil (like it is after a snapshot is successfully saved). This causes all future calls to TakeSnapshot() to fail with an error "Snapshot: Last snapshot is not finished."

Fixes etcd-io#1496

…apshot fails.

When a snapshot fails to save, Sever.pendingSnapshot is not set to nil (like it is after a snapshot is successfully saved).  This causes all future calls to TakeSnapshot() to fail with an error "Snapshot: Last snapshot is not finished."

Fixes etcd-io#1496
jstamerj pushed a commit that referenced this pull request Oct 30, 2014
fix(server): Set Server.pendingSnapshot back to nil after saving a snapshot fails.
@jstamerj jstamerj merged commit c583c09 into production Oct 30, 2014
@jstamerj jstamerj deleted the jstamerj/fixSnapshot branch October 30, 2014 00:15
@jstamerj jstamerj restored the jstamerj/fixSnapshot branch October 30, 2014 00:16
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant