diff options
| author | Tom Maxwell <tom.maxwell@4sightimaging.com> | 2019-09-04 15:27:14 +0100 |
|---|---|---|
| committer | Tom Maxwell <tom.maxwell@4sightimaging.com> | 2019-09-04 15:27:14 +0100 |
| commit | 4a878c0006ba97af83e8ad546839f42f1a224c7f (patch) | |
| tree | da618f7c13d5eaf9ce574f908c37d98588a63b2b /weed/command/backup.go | |
| parent | 6ee65356e3492b2df46b9204009a6327ff500745 (diff) | |
| download | seaweedfs-4a878c0006ba97af83e8ad546839f42f1a224c7f.tar.xz seaweedfs-4a878c0006ba97af83e8ad546839f42f1a224c7f.zip | |
Changed the InMemory bool to a uint32 so that it can be used to alter how much space to reserve
Diffstat (limited to 'weed/command/backup.go')
| -rw-r--r-- | weed/command/backup.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/command/backup.go b/weed/command/backup.go index 65d2a745b..9849f566e 100644 --- a/weed/command/backup.go +++ b/weed/command/backup.go @@ -112,7 +112,7 @@ func runBackup(cmd *Command, args []string) bool { return true } } - v, err := storage.NewVolume(*s.dir, *s.collection, vid, storage.NeedleMapInMemory, replication, ttl, 0, false) + v, err := storage.NewVolume(*s.dir, *s.collection, vid, storage.NeedleMapInMemory, replication, ttl, 0, 0) if err != nil { fmt.Printf("Error creating or reading from volume %d: %v\n", vid, 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, false) + v, err = storage.NewVolume(*s.dir, *s.collection, vid, storage.NeedleMapInMemory, replication, ttl, 0, 0) if err != nil { fmt.Printf("Error creating or reading from volume %d: %v\n", vid, err) return true |
