From 735038b2c1b3c8402605603e70d3741d07d0d195 Mon Sep 17 00:00:00 2001 From: chrislu Date: Fri, 13 May 2022 13:46:52 -0700 Subject: [PATCH] backup do not need to use preallocation fix https://github.com/chrislusf/seaweedfs/issues/3044 --- weed/command/backup.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/weed/command/backup.go b/weed/command/backup.go index ba1b0d287..c43b0d351 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, nil); err != nil { + if err = v.Compact2(0, 0, nil); err != nil { fmt.Printf("Compact Volume before synchronizing %v\n", err) return true }