aboutsummaryrefslogtreecommitdiff
path: root/weed/command/fix.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2020-01-07 09:03:47 -0800
committerChris Lu <chris.lu@gmail.com>2020-01-07 09:03:47 -0800
commitdc9457fb8718f607a96ccc41d610063bf364f50a (patch)
tree038c76de4dcc833f94e852f2b3877c67c84c0c1d /weed/command/fix.go
parentaa73364a246548c20557804fb9a9323a72950985 (diff)
downloadseaweedfs-dc9457fb8718f607a96ccc41d610063bf364f50a.tar.xz
seaweedfs-dc9457fb8718f607a96ccc41d610063bf364f50a.zip
fix compilation error
Diffstat (limited to 'weed/command/fix.go')
-rw-r--r--weed/command/fix.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/command/fix.go b/weed/command/fix.go
index e813efc32..8903595fa 100644
--- a/weed/command/fix.go
+++ b/weed/command/fix.go
@@ -76,7 +76,7 @@ func runFix(cmd *Command, args []string) bool {
nm: nm,
}
- if err = storage.ScanVolumeFile(*fixVolumePath, *fixVolumeCollection, vid, storage.NeedleMapInMemory, scanner); err != nil {
+ if err := storage.ScanVolumeFile(*fixVolumePath, *fixVolumeCollection, vid, storage.NeedleMapInMemory, scanner); err != nil {
glog.Fatalf("scan .dat File: %v", err)
os.Remove(indexFileName)
}