Skip to content

Commit

Permalink
Merge pull request #23 from MDrollette/nil-replayset
Browse files Browse the repository at this point in the history
Ensure ReplaySet is fully initialized before using it
  • Loading branch information
Roasbeef authored Mar 26, 2018
2 parents 6d4b135 + 804f616 commit c861375
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion decayedlog.go
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ func (d *DecayedLog) PutBatch(b *Batch) (*ReplaySet, error) {
// idempotent.
replayBytes := batchReplayBkt.Get(b.id)
if replayBytes != nil {
replays = &ReplaySet{}
replays = NewReplaySet()
return replays.Decode(bytes.NewReader(replayBytes))
}

Expand Down

0 comments on commit c861375

Please sign in to comment.