lnd.xprv/channeldb/kvdb
Andras Banki-Horvath 63e9d6102f
kvdb+etcd: change flattened bucket key derivation algorithm
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.
2020-07-28 17:57:29 +02:00
..
etcd kvdb+etcd: change flattened bucket key derivation algorithm 2020-07-28 17:57:29 +02:00
backend.go kvdb+lncfg: fully move etcd behind build tag 2020-05-22 11:26:25 +02:00
config.go kvdb+lncfg: fully move etcd behind build tag 2020-05-22 11:26:25 +02:00
interface.go multi: rename ReadCursor to RCursor 2020-05-26 18:21:08 -07:00
kvdb_etcd.go lnd+kvdb: pass LND abort context to etcd 2020-06-03 17:44:44 +02:00
kvdb_no_etcd.go lnd+kvdb: pass LND abort context to etcd 2020-06-03 17:44:44 +02:00