All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog and this project adheres to Semantic Versioning.
Bug Fixes:
Bug Fixes:
If a transaction has unclosed, or multiple iterators running simultaneously, throw a panic. Every iterator must be properly closed. At any point in time, only one iterator per transaction can be running. This is to avoid bugs in a transaction data structure which is thread unsafe.
Warning: This change might cause panics in user code. Fix is to properly close your iterators, and only have one running at a time per transaction.
Bug Fixes:
badgerMove
prefix. https://github.com/dgraph-io/badger/commit/2e3a32f0ccac3066fb4206b28deb39c210c5266fCleanup:
NumVersionsToKeep
option. This option is used to discard many
versions of the same key, which saves space.SetWithDiscard
method, which would indicate that all the older
versions of the key are now invalid. Those versions would be discarded during
compactions.ValueLogMaxEntries
to restrict the number of key-value pairs per
value log file. This helps bound the time it takes to garbage collect one
file.LSMOnlyOptions
, to make Badger act like a typical LSM based DB.Bug fix:
DB.NextSequence()
method to generate monotonically increasing integer
sequences.DB.Size()
method to return the size of LSM and value log files.DB.PurgeOlderVersions()
to not violate some constraints.Txn.SetEntry()
method to allow setting the key-value pair
and all the metadata at the same time.badger.Open
is called.Item.ValueCopy()
to avoid deadlocks in long-running iterations