lnd/kvdb/etcd
Oliver Gugger 1e84b52fee
lncfg+etcd: add namespace support for etcd databases
Since we're now storing the content of multiple previously distinct
database files in etcd, we want to properly namespace them as not to
provoke any key collisions. We append a sub namespace to the given
global namespace in order to still support multiple lnd nodes using the
same etcd database simultaneously.

Because the btcwallet code uses the legacy walletdb interface we must
assume it is not fully concurrency safe. Therefore we make sure only a
single writer can be active at any given time for the wallet DB backend
when using etcd.
2021-08-04 14:55:54 +02:00
..
bucket.go kvdb/test: generalize etcd tests 2021-07-12 11:31:05 +02:00
commit_queue.go kvdb: move channeldb/kvdb to top level 2021-05-07 14:18:56 +02:00
commit_queue_test.go kvdb: move channeldb/kvdb to top level 2021-05-07 14:18:56 +02:00
config.go lncfg+etcd: add namespace support for etcd databases 2021-08-04 14:55:54 +02:00
db.go kvdb+lncfg: fix some typos in comments 2021-08-04 14:55:48 +02:00
db_test.go kvdb/test: generalize etcd tests 2021-07-12 11:31:05 +02:00
debug.go etcd: remove assertion when creating bucket and value with the same key 2021-07-16 16:06:32 +02:00
driver.go kvdb: move channeldb/kvdb to top level 2021-05-07 14:18:56 +02:00
driver_test.go kvdb: move channeldb/kvdb to top level 2021-05-07 14:18:56 +02:00
embed.go mod+kvdb: update etcd to v3.5.0 2021-07-27 13:09:59 +02:00
fixture.go mod+kvdb: update etcd to v3.5.0 2021-07-27 13:09:59 +02:00
nodebug.go etcd: remove assertion when creating bucket and value with the same key 2021-07-16 16:06:32 +02:00
readwrite_bucket.go etcd: remove assertion when creating bucket and value with the same key 2021-07-16 16:06:32 +02:00
readwrite_cursor.go etcd: remove unnecessary iterator step from cursor Delete 2021-07-16 15:21:14 +02:00
readwrite_tx.go etcd: optionally reduce concurrency to single writer for legacy code 2021-07-20 21:02:11 +02:00
readwrite_tx_test.go kvdb/test: generalize etcd tests 2021-07-12 11:31:05 +02:00
stm.go mod+kvdb: update etcd to v3.5.0 2021-07-27 13:09:59 +02:00
stm_test.go kvdb: move channeldb/kvdb to top level 2021-05-07 14:18:56 +02:00
walletdb_interface_test.go kvdb: move channeldb/kvdb to top level 2021-05-07 14:18:56 +02:00