Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update raft submodule and start using the new raft.Storage interface. #190

Merged
merged 1 commit into from
Dec 2, 2014

Conversation

bdarnell
Copy link
Contributor

@bdarnell bdarnell commented Dec 1, 2014

This includes the raft changes in etcd-io/etcd#7777.

@spencerkimball @cockroachdb/developers

@@ -72,6 +73,16 @@ type LogEntryState struct {
Error error
}

// WriteableGroupStorage represents a single group within a Storage.
// It is implemented by *raft.MemoryStorage.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not move the second sentence of this comment down to line 78 and change it to something like:

// Verify raft.MemoryStorage implements WriteableGroupStorage.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's here in the public docstring in part to document why the interface is the way it is, since we're making an interface out of methods defined in another package.

@spencerkimball
Copy link
Member

LGTM

bdarnell added a commit that referenced this pull request Dec 2, 2014
Update raft submodule and start using the new raft.Storage interface.
@bdarnell bdarnell merged commit 6396675 into cockroachdb:master Dec 2, 2014
@bdarnell bdarnell deleted the multiraft-storage branch December 2, 2014 19:05
pav-kv pushed a commit to pav-kv/cockroach that referenced this pull request Apr 10, 2024
…h-assert-tracker

Test: Replace t.error/fatal with assert/request in [/tracker/inflights_test.go]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants