aboutsummaryrefslogtreecommitdiff
path: root/weed/command/compact.go
diff options
context:
space:
mode:
Diffstat (limited to 'weed/command/compact.go')
-rw-r--r--weed/command/compact.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/weed/command/compact.go b/weed/command/compact.go
index 6f5f2307a..c3ff0a77c 100644
--- a/weed/command/compact.go
+++ b/weed/command/compact.go
@@ -1,7 +1,7 @@
package command
import (
- "github.com/seaweedfs/seaweedfs/weed/glog"
+ "github.com/seaweedfs/seaweedfs/weed/util/log"
"github.com/seaweedfs/seaweedfs/weed/storage"
"github.com/seaweedfs/seaweedfs/weed/storage/needle"
"github.com/seaweedfs/seaweedfs/weed/util"
@@ -43,15 +43,15 @@ func runCompact(cmd *Command, args []string) bool {
vid := needle.VolumeId(*compactVolumeId)
v, err := storage.NewVolume(util.ResolvePath(*compactVolumePath), util.ResolvePath(*compactVolumePath), *compactVolumeCollection, vid, storage.NeedleMapInMemory, nil, nil, preallocate, 0, 0)
if err != nil {
- glog.Fatalf("Load Volume [ERROR] %s\n", err)
+ log.Fatalf("Load Volume [ERROR] %s\n", err)
}
if *compactMethod == 0 {
if err = v.Compact(preallocate, 0); err != nil {
- glog.Fatalf("Compact Volume [ERROR] %s\n", err)
+ log.Fatalf("Compact Volume [ERROR] %s\n", err)
}
} else {
if err = v.Compact2(preallocate, 0, nil); err != nil {
- glog.Fatalf("Compact Volume [ERROR] %s\n", err)
+ log.Fatalf("Compact Volume [ERROR] %s\n", err)
}
}