Skip to content

Commit c861375

Browse files
authored
Merge pull request #23 from MDrollette/nil-replayset
Ensure ReplaySet is fully initialized before using it
2 parents 6d4b135 + 804f616 commit c861375

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

decayedlog.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -403,7 +403,7 @@ func (d *DecayedLog) PutBatch(b *Batch) (*ReplaySet, error) {
403403
// idempotent.
404404
replayBytes := batchReplayBkt.Get(b.id)
405405
if replayBytes != nil {
406-
replays = &ReplaySet{}
406+
replays = NewReplaySet()
407407
return replays.Decode(bytes.NewReader(replayBytes))
408408
}
409409

0 commit comments

Comments
 (0)