kvdb/bolt_compact: have log message take account space multiplier

[skip ci]
This commit is contained in:
Jamie Turley authored and Jamie Turley committed 2021-11-21 21:52:30 -08:00
1 parent 03adf5c626
commit fb43843253
2 files changed
+10 -1

No files matched your search

@@ -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
+1 -1
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)