aboutsummaryrefslogtreecommitdiff
path: root/weed/command/backup.go
diff options
context:
space:
mode:
authorChris Lu <chris.lu@gmail.com>2021-10-24 01:55:34 -0700
committerChris Lu <chris.lu@gmail.com>2021-10-24 01:55:34 -0700
commit3be3c17f59bc409b15b0dcb687e14c4af10f94c4 (patch)
tree3458f283136b9045f00c91744ffc5953221fc022 /weed/command/backup.go
parent07dd4873db996c4f4a94ee3b0975052d0ec7595b (diff)
downloadseaweedfs-3be3c17f59bc409b15b0dcb687e14c4af10f94c4.tar.xz
seaweedfs-3be3c17f59bc409b15b0dcb687e14c4af10f94c4.zip
volume vacuum: avoid timeout with streaming progress report
fix https://github.com/chrislusf/seaweedfs/issues/2396
Diffstat (limited to 'weed/command/backup.go')
-rw-r--r--weed/command/backup.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/weed/command/backup.go b/weed/command/backup.go
index 2279d0d1a..ba1b0d287 100644
--- a/weed/command/backup.go
+++ b/weed/command/backup.go
@@ -120,7 +120,7 @@ func runBackup(cmd *Command, args []string) bool {
}
if v.SuperBlock.CompactionRevision < uint16(stats.CompactRevision) {
- if err = v.Compact2(30*1024*1024*1024, 0); err != nil {
+ if err = v.Compact2(30*1024*1024*1024, 0, nil); err != nil {
fmt.Printf("Compact Volume before synchronizing %v\n", err)
return true
}