HBOCodeLabs/etcd — pull request #2 by jstamerj (2014-10-30 00:17:22+00:00)
Title: fix(server): Set Server.pendingSnapshot back to nil after saving a snapshot 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 #1496