Skip to content

SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.

typo

chrislue28f55eb087c
diff --git a/weed/shell/command_fs_merge_volumes.go b/weed/shell/command_fs_merge_volumes.go
index 40033c1905..d35f63c0ad 100644
--- a/weed/shell/command_fs_merge_volumes.go
+++ b/weed/shell/command_fs_merge_volumes.go
@@ -226,29 +226,29 @@ func (c *commandFsMergeVolumes) createMergePlan(collection string, toVolumeId ne
continue
}
for j := 0; j < i; j++ {
- condidate := volumeIds[j]
- if toVolumeId != 0 && condidate != toVolumeId {
+ candidate := volumeIds[j]
+ if toVolumeId != 0 && candidate != toVolumeId {
continue
}
- if _, moving := plan[condidate]; moving {
+ if _, moving := plan[candidate]; moving {
continue
}
- compatible, err := c.volumesAreCompatible(src, condidate)
+ compatible, err := c.volumesAreCompatible(src, candidate)
if err != nil {
return nil, err
}
if !compatible {
- fmt.Printf("volume %d is not compatible with volume %d\n", src, condidate)
+ fmt.Printf("volume %d is not compatible with volume %d\n", src, candidate)
continue
}
- if c.getVolumeSizeBasedOnPlan(plan, condidate)+c.getVolumeSizeById(src) > c.volumeSizeLimit {
+ if c.getVolumeSizeBasedOnPlan(plan, candidate)+c.getVolumeSizeById(src) > c.volumeSizeLimit {
fmt.Printf("volume %d (%d MB) merge into volume %d (%d MB) exceeds volume size limit (%d MB)\n",
src, c.getVolumeSizeById(src)/1024/1024,
- condidate, c.getVolumeSizeById(condidate)/1024/1024,
+ candidate, c.getVolumeSizeById(candidate)/1024/1024,
c.volumeSizeLimit/1024/1024)
continue
}
- plan[src] = condidate
+ plan[src] = candidate
break
}
}