diff --git a/plugin/plugins/badger2ds/badger2ds.go b/plugin/plugins/badger2ds/badger2ds.go index 73db6a7d04a7..b25f126868e8 100644 --- a/plugin/plugins/badger2ds/badger2ds.go +++ b/plugin/plugins/badger2ds/badger2ds.go @@ -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) }