Skip to content

Commit

Permalink
kvdb/bolt_compact: have log message take account space multiplier
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
jyturley committed Nov 22, 2021
1 parent 03adf5c commit fb43843
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
9 changes: 9 additions & 0 deletions docs/release-notes/release-notes-0.14.1.md
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion kvdb/bolt_compact.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit fb43843

Please sign in to comment.