Skip to content

Commit

Permalink
Better comment on snapshotindex
Browse files Browse the repository at this point in the history
  • Loading branch information
dadgar committed Sep 24, 2018
1 parent 872057f commit 73be3d8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions nomad/structs/structs.go
Original file line number Diff line number Diff line change
Expand Up @@ -6882,8 +6882,11 @@ type Evaluation struct {
LeaderACL string

// SnapshotIndex is the Raft index of the snapshot used to process the
// evaluation. As such it will only be set once it has gone through the
// scheduler.
// evaluation. The index will either be set when it has gone through the
// scheduler or if a blocked evaluation is being created. The index is set
// in this case so we can determine if an early unblocking is required since
// capacity has changed since the evaluation was created. This can result in
// the SnapshotIndex being less than the CreateIndex.
SnapshotIndex uint64

// Raft Indexes
Expand Down

0 comments on commit 73be3d8

Please sign in to comment.