mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
collect proof when stopping
This commit is contained in:
parent
b38ff39e8b
commit
d3ae3a8e14
|
@ -60,6 +60,9 @@ func runMaster(cmd *Command, args []string) bool {
|
|||
}
|
||||
pprof.StartCPUProfile(f)
|
||||
defer pprof.StopCPUProfile()
|
||||
OnInterrupt(func() {
|
||||
pprof.StopCPUProfile()
|
||||
})
|
||||
}
|
||||
if err := util.TestFolderWritable(*metaFolder); err != nil {
|
||||
glog.Fatalf("Check Meta Folder (-mdir) Writable %s : %s", *metaFolder, err)
|
||||
|
|
Loading…
Reference in a new issue