aboutsummaryrefslogtreecommitdiff
path: root/weed/command/backup.go
diff options
context:
space:
mode:
authorChris Lu <chrislusf@users.noreply.github.com>2019-10-21 22:30:35 -0700
committerGitHub <noreply@github.com>2019-10-21 22:30:35 -0700
commitc262526d8ad86b54bd34bacddd6cc393ebfbe984 (patch)
tree512a3e6178b0f7d7f18d3169e8ff6425982776ba /weed/command/backup.go
parent7de121d99b87d4d38356fb83ee15e761f7d22ed4 (diff)
parent2e2fe00dbd69d631bff8189708315ebea5f1e524 (diff)
downloadseaweedfs-c262526d8ad86b54bd34bacddd6cc393ebfbe984.tar.xz
seaweedfs-c262526d8ad86b54bd34bacddd6cc393ebfbe984.zip
Merge pull request #1087 from joeslay/master
Storing files in in-memory collections on windows
Diffstat (limited to 'weed/command/backup.go')
-rw-r--r--weed/command/backup.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/weed/command/backup.go b/weed/command/backup.go
index cd5843dd3..505de4ae6 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)
+ 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)
+ 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