aboutsummaryrefslogtreecommitdiff
path: root/weed/storage
diff options
context:
space:
mode:
authorChris Lu <chrislusf@users.noreply.github.com>2022-04-18 09:59:58 -0700
committerGitHub <noreply@github.com>2022-04-18 09:59:58 -0700
commit60ae6082c20ee952835dd9944f67addc0f039ab1 (patch)
tree7ead6210486bbe6bca9a1b23e8bb6e808a6fe356 /weed/storage
parent868b4f894485d1b041daf4cfbfc96856b27eb253 (diff)
parent36c5a59ed8073099c8a5513667c5676f148657f7 (diff)
downloadseaweedfs-60ae6082c20ee952835dd9944f67addc0f039ab1.tar.xz
seaweedfs-60ae6082c20ee952835dd9944f67addc0f039ab1.zip
Merge pull request #2936 from kmlebedev/vacuum_by_vid
shell vacuum volume by collection and volume id
Diffstat (limited to 'weed/storage')
-rw-r--r--weed/storage/volume_vacuum.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/weed/storage/volume_vacuum.go b/weed/storage/volume_vacuum.go
index 06de181b5..7651420aa 100644
--- a/weed/storage/volume_vacuum.go
+++ b/weed/storage/volume_vacuum.go
@@ -438,8 +438,7 @@ func copyDataBasedOnIndexFile(srcDatName, srcIdxName, dstDatName, datIdxName str
}
n := new(needle.Needle)
- err := n.ReadData(srcDatBackend, offset.ToActualOffset(), size, version)
- if err != nil {
+ if err := n.ReadData(srcDatBackend, offset.ToActualOffset(), size, version); err != nil {
return fmt.Errorf("cannot hydrate needle from file: %s", err)
}