lnd.xprv/channeldb/kvdb
Oliver Gugger 505be0d8bc
channeldb: implement compaction
This commit adds the compaction feature of the bbolt compact to our bolt
backend. This will try to open the DB in read-only mode and create a
compacted copy in a temporary file. Once the compaction was successful,
the temporary file and the old source file are swapped atomically.
2020-11-13 10:19:50 +01:00
..
etcd etcd: allow readwrite bucket Delete with nil key (bbolt compatibility) 2020-11-05 17:57:13 +01:00
backend.go channeldb: implement compaction 2020-11-13 10:19:50 +01:00
bolt_compact.go channeldb: implement compaction 2020-11-13 10:19:50 +01:00
config.go lncfg+channeldb: add autocompact flags to BoltConfig 2020-11-13 10:19:49 +01:00
interface.go multi: add reset closure to kvdb.Update 2020-11-05 17:57:12 +01: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
log.go channeldb: implement compaction 2020-11-13 10:19:50 +01:00