aboutsummaryrefslogtreecommitdiff
path: root/weed/command/backup.go
diff options
context:
space:
mode:
authorTom Maxwell <tom.maxwell@4sightimaging.com>2019-09-03 15:41:28 +0100
committerTom Maxwell <tom.maxwell@4sightimaging.com>2019-09-03 15:41:28 +0100
commitd637d86d22f6f4033d931dd59aa86233521246a4 (patch)
tree1b87a4c660a10d921cf87ae17ccef7fcc301e997 /weed/command/backup.go
parent9a459d984bd3fa0da0a45751e7244b82f8bc7b92 (diff)
downloadseaweedfs-d637d86d22f6f4033d931dd59aa86233521246a4.tar.xz
seaweedfs-d637d86d22f6f4033d931dd59aa86233521246a4.zip
Changes to try and pass the URL parameters through - in memory flag not working still
Diffstat (limited to 'weed/command/backup.go')
-rw-r--r--weed/command/backup.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/weed/command/backup.go b/weed/command/backup.go
index 167f07225..64924c3c6 100644
--- a/weed/command/backup.go
+++ b/weed/command/backup.go
@@ -112,14 +112,14 @@ func runBackup(cmd *Command, args []string) bool {
return true
}
}
- v, err := storage.NewVolume(*s.dir, *s.collection, vid, storage.NeedleMapInMemory, replication, ttl, 0)
+ v, err := storage.NewVolume(*s.dir, *s.collection, vid, storage.NeedleMapInMemory, replication, ttl, 0, false)
if err != nil {
fmt.Printf("Error creating or reading from volume %d: %v\n", vid, err)
return true
}
if v.SuperBlock.CompactionRevision < uint16(stats.CompactRevision) {
- if err = v.Compact(0, 0); err != nil {
+ if err = v.Compact(0, 0, false); err != nil {
fmt.Printf("Compact Volume before synchronizing %v\n", err)
return true
}
@@ -137,7 +137,7 @@ func runBackup(cmd *Command, args []string) bool {
// remove the old data
v.Destroy()
// recreate an empty volume
- v, err = storage.NewVolume(*s.dir, *s.collection, vid, storage.NeedleMapInMemory, replication, ttl, 0)
+ v, err = storage.NewVolume(*s.dir, *s.collection, vid, storage.NeedleMapInMemory, replication, ttl, 0, false)
if err != nil {
fmt.Printf("Error creating or reading from volume %d: %v\n", vid, err)
return true