diff options
| author | hilimd <68371223+hilimd@users.noreply.github.com> | 2021-10-27 09:42:23 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-27 09:42:23 +0800 |
| commit | 6999325d3631f0e9f4fe4e081650dcf60a1293c5 (patch) | |
| tree | 99082f145eeee921ae772d0c8601f97f40b7f074 /weed/command | |
| parent | ee90edd0e3746ae0f6046dd9e7362aeec821456c (diff) | |
| parent | 3eeaffeadd9bcff0148d0b1c860ea4ff03e82904 (diff) | |
| download | seaweedfs-6999325d3631f0e9f4fe4e081650dcf60a1293c5.tar.xz seaweedfs-6999325d3631f0e9f4fe4e081650dcf60a1293c5.zip | |
Merge pull request #84 from chrislusf/master
sync
Diffstat (limited to 'weed/command')
| -rw-r--r-- | weed/command/backup.go | 2 | ||||
| -rw-r--r-- | weed/command/compact.go | 2 |
2 files changed, 2 insertions, 2 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 } diff --git a/weed/command/compact.go b/weed/command/compact.go index 92e25f474..6df28440a 100644 --- a/weed/command/compact.go +++ b/weed/command/compact.go @@ -50,7 +50,7 @@ func runCompact(cmd *Command, args []string) bool { glog.Fatalf("Compact Volume [ERROR] %s\n", err) } } else { - if err = v.Compact2(preallocate, 0); err != nil { + if err = v.Compact2(preallocate, 0, nil); err != nil { glog.Fatalf("Compact Volume [ERROR] %s\n", err) } } |
