Skip to content
This repository has been archived by the owner on Aug 13, 2019. It is now read-only.

Commit

Permalink
nit
Browse files Browse the repository at this point in the history
Signed-off-by: Krasi Georgiev <[email protected]>
  • Loading branch information
Krasi Georgiev committed Oct 17, 2018
1 parent 5c5369c commit 26371af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion checkpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ func Checkpoint(w *wal.WAL, from, to int, keep func(id uint64) bool, mint int64)
if err := os.MkdirAll(cpdirtmp, 0777); err != nil {
return nil, errors.Wrap(err, "create checkpoint dir")
}
// Ensure that an early return doesn't leave the tmp folder behind.
// Ensure that an early return doesn't leave any tmp folder.
defer os.RemoveAll(cpdirtmp)

cp, err := wal.New(nil, nil, cpdirtmp)
Expand Down

0 comments on commit 26371af

Please sign in to comment.