diff options
| author | hilimd <68371223+hilimd@users.noreply.github.com> | 2020-07-20 15:35:47 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-07-20 15:35:47 +0800 |
| commit | 5850bb733936399babbe2d77f4b27cac312e2798 (patch) | |
| tree | 3966daffbb7b2633906f883e3047511772a4fdcf /weed/command/compact.go | |
| parent | b1616e93474246a624370ad18da98b8371c09ece (diff) | |
| parent | f90d2c93c9e34997a8e76aeefb438ec06b1cd093 (diff) | |
| download | seaweedfs-5850bb733936399babbe2d77f4b27cac312e2798.tar.xz seaweedfs-5850bb733936399babbe2d77f4b27cac312e2798.zip | |
Merge pull request #2 from chrislusf/master
sync
Diffstat (limited to 'weed/command/compact.go')
| -rw-r--r-- | weed/command/compact.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/weed/command/compact.go b/weed/command/compact.go index 4e28aa725..6117cf9f3 100644 --- a/weed/command/compact.go +++ b/weed/command/compact.go @@ -4,6 +4,7 @@ import ( "github.com/chrislusf/seaweedfs/weed/glog" "github.com/chrislusf/seaweedfs/weed/storage" "github.com/chrislusf/seaweedfs/weed/storage/needle" + "github.com/chrislusf/seaweedfs/weed/util" ) func init() { @@ -40,7 +41,7 @@ func runCompact(cmd *Command, args []string) bool { preallocate := *compactVolumePreallocate * (1 << 20) vid := needle.VolumeId(*compactVolumeId) - v, err := storage.NewVolume(*compactVolumePath, *compactVolumeCollection, vid, + v, err := storage.NewVolume(util.ResolvePath(*compactVolumePath), *compactVolumeCollection, vid, storage.NeedleMapInMemory, nil, nil, preallocate, 0) if err != nil { glog.Fatalf("Load Volume [ERROR] %s\n", err) |
