Skip to content

Commit

Permalink
Update aggregated checkpoints even with same size (#243)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlCutter authored Oct 23, 2024
1 parent 202ce0d commit 0fa8126
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmd/internal/distributor/distributor.go
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ func (d *Distributor) Distribute(ctx context.Context, logID, witID string, nextR
}
// If there are no rows then that's fine, we'll allow lastTreeSize to stay at 0
}
if newCP.Size > lastTreeSize {
if newCP.Size >= lastTreeSize {
// If the new checkpoint is for a tree larger than the current checkpoint.N for this log, then
// we have the option of creating a new checkpoint.N for the larger tree size.
mergedCP, err := checkpoints.Combine(allCheckpoints, l.Verifier, note.VerifierList(witnesses...))
Expand Down

0 comments on commit 0fa8126

Please sign in to comment.