kvdb/bolt_compact: have log message take account space multiplier

[skip ci]
This commit is contained in:
Jamie Turley 2021-11-10 10:54:05 -08:00 committed by Jamie Turley
parent 03adf5c626
commit fb43843253
2 changed files with 10 additions and 1 deletions

View file

@ -0,0 +1,9 @@
# Release Notes
## Bug Fixes
* [Fixed an inaccurate log message during a compaction failure](https://github.com/lightningnetwork/lnd/issues/5937)
# Contributors (Alphabetical Order)
* Jamie Turley

View file

@ -80,7 +80,7 @@ func (cmd *compacter) execute() (int64, int64, error) {
return 0, 0, fmt.Errorf("could not start compaction, "+
"destination folder %s only has %d bytes of free disk "+
"space available while we need at least %d for worst-"+
"case compaction", destFolder, freeSpace, initialSize)
"case compaction", destFolder, freeSpace, uint64(marginSize))
}
// Open source database. We open it in read only mode to avoid (and fix)