Skip to content

Commit

Permalink
Fix garbage collection
Browse files Browse the repository at this point in the history
We were opening the database and telling it to keep infinite copies by not defining a value.
  • Loading branch information
feld committed Aug 26, 2022
1 parent 0002945 commit 9cec891
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions plugin/plugins/badger2ds/badger2ds.go
Original file line number Diff line number Diff line change
Expand Up @@ -179,6 +179,7 @@ func (c *datastoreConfig) Create(path string) (repo.Datastore, error) {
defopts.ZSTDCompressionLevel = c.zstdCompressionLevel
defopts.BlockCacheSize = c.blockCacheSize
defopts.ValueLogFileSize = c.vlogFileSize
defopts.NumVersionsToKeep = 1

return badger2ds.NewDatastore(p, &defopts)
}

0 comments on commit 9cec891

Please sign in to comment.