diff --git a/_vendor/src/github.com/coreos/etcd b/_vendor/src/github.com/coreos/etcd index 7bf87e2b09b3..91d2a9ec87ea 160000 --- a/_vendor/src/github.com/coreos/etcd +++ b/_vendor/src/github.com/coreos/etcd @@ -1 +1 @@ -Subproject commit 7bf87e2b09b3225900eb227bd33e8de93f7a270b +Subproject commit 91d2a9ec87ead03c1bd6666dc527029137a58f26 diff --git a/multiraft/storage.go b/multiraft/storage.go index 45c74cad5cdf..75b03c077b78 100644 --- a/multiraft/storage.go +++ b/multiraft/storage.go @@ -29,7 +29,7 @@ import ( // It is implemented by *raft.MemoryStorage. type WriteableGroupStorage interface { raft.Storage - Append(entries []raftpb.Entry) + Append(entries []raftpb.Entry) error SetHardState(st raftpb.HardState) error } diff --git a/multiraft/storage_test.go b/multiraft/storage_test.go index d1c3614cd26f..b567d7fb7e25 100644 --- a/multiraft/storage_test.go +++ b/multiraft/storage_test.go @@ -50,9 +50,9 @@ type blockableGroupStorage struct { s WriteableGroupStorage } -func (b *blockableGroupStorage) Append(entries []raftpb.Entry) { +func (b *blockableGroupStorage) Append(entries []raftpb.Entry) error { b.b.wait() - b.s.Append(entries) + return b.s.Append(entries) } func (b *blockableGroupStorage) SetHardState(st raftpb.HardState) error {