Skip to content

Commit

Permalink
fix copy file
Browse files Browse the repository at this point in the history
  • Loading branch information
zhangchiqing committed Jun 18, 2024
1 parent d3dfed9 commit 3d2e8f9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion cmd/util/cmd/find-trie-root/cmd.go
Original file line number Diff line number Diff line change
Expand Up @@ -214,7 +214,9 @@ func findRootHashAndCreateTrimmed(dir string, segment int, expectedRoot ledger.R
return "", fmt.Errorf("cannot create temporary folder: %w", err)
}

newSegmentFile := prometheusWAL.SegmentName(tmpFolder, segment)
// the new segment file will be created in the temporary folder
// and it's always 00000000
newSegmentFile := prometheusWAL.SegmentName(tmpFolder, 0)

log.Info().Msgf("writing new segment file to %v", newSegmentFile)

Expand Down

0 comments on commit 3d2e8f9

Please sign in to comment.