diff options
| author | Chris Lu <chrislusf@users.noreply.github.com> | 2020-04-27 23:59:13 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-27 23:59:13 -0700 |
| commit | 47c4a62c5db8564d036cc96c2f4a097494a2567a (patch) | |
| tree | 2a6eb0dd50a530dfb72496a69715438c9aa15a44 /weed/command/filer_copy.go | |
| parent | 2a7957b4ca83fdb5232d761074e81dce6b99648f (diff) | |
| parent | 6850d28d6b99155dca2da8fa8bbf76124f528fa4 (diff) | |
| download | seaweedfs-47c4a62c5db8564d036cc96c2f4a097494a2567a.tar.xz seaweedfs-47c4a62c5db8564d036cc96c2f4a097494a2567a.zip | |
Merge pull request #1293 from wyxloading/refactor_signal_handler
refactor: move signal handling and pprof to grace package
Diffstat (limited to 'weed/command/filer_copy.go')
| -rw-r--r-- | weed/command/filer_copy.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/weed/command/filer_copy.go b/weed/command/filer_copy.go index 0e9e10ee3..b6ac7854b 100644 --- a/weed/command/filer_copy.go +++ b/weed/command/filer_copy.go @@ -14,6 +14,7 @@ import ( "sync" "time" + "github.com/chrislusf/seaweedfs/weed/util/grace" "google.golang.org/grpc" "github.com/chrislusf/seaweedfs/weed/operation" @@ -134,7 +135,7 @@ func runCopy(cmd *Command, args []string) bool { copy.ttlSec = int32(ttl.Minutes()) * 60 if *cmdCopy.IsDebug { - util.SetupProfiling("filer.copy.cpu.pprof", "filer.copy.mem.pprof") + grace.SetupProfiling("filer.copy.cpu.pprof", "filer.copy.mem.pprof") } fileCopyTaskChan := make(chan FileCopyTask, *copy.concurrenctFiles) |
