Skip to content

Commit 17fc7b4

Browse files
committed
Bugfix: ClearOnStart was not implemented
1 parent 360a2bc commit 17fc7b4

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

api.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,10 @@ func NewDiskLRU(
272272
return nil, err
273273
}
274274

275+
if opts.ClearOnStart {
276+
self.clear_stm.Exec()
277+
}
278+
275279
// Run the housekeep thread
276280
go self.houseKeeping(sub_ctx)
277281

0 commit comments

Comments
 (0)