diff options
| author | SmsS4 <36403983+SmsS4@users.noreply.github.com> | 2023-08-13 14:20:53 +0330 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-08-13 03:50:53 -0700 |
| commit | ea1b259c12a9234c11c1e64c882c4ff283e94ef8 (patch) | |
| tree | 1a93fdc76b00cc9c48a38185df3703cf8d9c1002 | |
| parent | 4b1ba7f5b240ca0a83a6bc2c5f7cb1e57a671f8a (diff) | |
| download | seaweedfs-ea1b259c12a9234c11c1e64c882c4ff283e94ef8.tar.xz seaweedfs-ea1b259c12a9234c11c1e64c882c4ff283e94ef8.zip | |
Update weed fix description (#4745)
| -rw-r--r-- | weed/command/fix.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/weed/command/fix.go b/weed/command/fix.go index b5016d961..b226a0b1a 100644 --- a/weed/command/fix.go +++ b/weed/command/fix.go @@ -25,7 +25,8 @@ var cmdFix = &Command{ UsageLine: "fix [-volumeId=234] [-collection=bigData] /tmp", Short: "run weed tool fix on files or whole folders to recreate index file(s) if corrupted", Long: `Fix runs the SeaweedFS fix command on dat files or whole folders to re-create the index .idx file. - `, + You Need to stop the volume server when running this command. +`, } var ( @@ -42,8 +43,8 @@ type VolumeFileScanner4Fix struct { func (scanner *VolumeFileScanner4Fix) VisitSuperBlock(superBlock super_block.SuperBlock) error { scanner.version = superBlock.Version return nil - } + func (scanner *VolumeFileScanner4Fix) ReadNeedleBody() bool { return false } @@ -115,7 +116,6 @@ func runFix(cmd *Command, args []string) bool { } func doFixOneVolume(basepath string, baseFileName string, collection string, volumeId int64) { - indexFileName := path.Join(basepath, baseFileName+".idx") nm := needle_map.NewMemDb() |
