Skip to content

Commit 804f616

Browse files
committed
ensure replays is fully initialized before using it
1 parent 6d4b135 commit 804f616

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)