summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@lukeshu.com>2023-01-08 18:02:07 -0700
committerLuke Shumaker <lukeshu@lukeshu.com>2023-02-12 16:20:05 -0700
commit2b72cef74ea368b39d976866944d8279293be9de (patch)
treeedd88a2ddc79588b24c54e143c1336d06ba52af2 /cmd
parent6945af3e19a9c3ee52229463de4c136ebca44a7e (diff)
rebuildnodes/btrees: Have the concurrency story for .trees make more sense
Diffstat (limited to 'cmd')
-rw-r--r--cmd/btrfs-rec/inspect_rebuildnodes.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/btrfs-rec/inspect_rebuildnodes.go b/cmd/btrfs-rec/inspect_rebuildnodes.go
index acbffd6..ba1dcab 100644
--- a/cmd/btrfs-rec/inspect_rebuildnodes.go
+++ b/cmd/btrfs-rec/inspect_rebuildnodes.go
@@ -57,7 +57,7 @@ func init() {
dlog.Errorf(ctx, "rebuild error: %v", rebuildErr)
}
dlog.Infof(ctx, "Writing re-built nodes to %s...", dst.Name())
- if err := writeJSONFile(dst, rebuilder.ListRoots(), lowmemjson.ReEncoderConfig{
+ if err := writeJSONFile(dst, rebuilder.ListRoots(ctx), lowmemjson.ReEncoderConfig{
Indent: "\t",
CompactIfUnder: 80, //nolint:gomnd // This is what looks nice.
ForceTrailingNewlines: true,