63e9d6102f
This commit changes the key derivation algo we use to emulate buckets similar to bbolt. The issue with prefixing keys with either a bucket or a value prefix is that the cursor couldn't effectively iterate trough all keys in a bucket, as it skipped the bucket keys. While there are multiple ways to fix that issue (eg. two pointers, iterating value keys then bucket keys, etc), the cleanest is to instead of prefixes in keys we use a postfix indicating whether a key is a bucket or a value. This also simplifies all operations where we (recursively) iterate a bucket and is equivalent with the prefixing key derivation with the addition that bucket and value keys are now continous. |
||
---|---|---|
.. | ||
bucket_test.go | ||
bucket.go | ||
db_test.go | ||
db.go | ||
driver_test.go | ||
driver.go | ||
embed.go | ||
fixture_test.go | ||
readwrite_bucket_test.go | ||
readwrite_bucket.go | ||
readwrite_cursor_test.go | ||
readwrite_cursor.go | ||
readwrite_tx_test.go | ||
readwrite_tx.go | ||
stm_test.go | ||
stm.go | ||
walletdb_interface_test.go |