Skip to content

Commit

Permalink
Merge pull request #8106 from tamird/preemptive-snap-no-backwards
Browse files Browse the repository at this point in the history
storage: update confusing comment
  • Loading branch information
tamird authored Nov 12, 2016
2 parents 59693a1 + 2aaebc4 commit 2625df1
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions pkg/storage/store.go
Original file line number Diff line number Diff line change
Expand Up @@ -2795,10 +2795,8 @@ func (s *Store) processRaftRequest(

if req.ToReplica.ReplicaID == 0 {
if req.Message.Type == raftpb.MsgSnap {
// Allow snapshots to be applied to replicas before they are
// members of the raft group (i.e. replicas with an ID of 0). This
// is the only operation that can be performed before it is part of
// the raft group.
// Snapshots addressed to replica ID 0 are permitted; this is the
// mechanism by which preemptive snapshots work.

defer func() {
s.mu.Lock()
Expand Down

0 comments on commit 2625df1

Please sign in to comment.