diff options
| author | linxin <[email protected]> | 2023-10-25 10:50:03 +0800 |
|---|---|---|
| committer | linxin <[email protected]> | 2023-10-25 10:50:03 +0800 |
| commit | 61a3bc080a674dcc30962dfd9517b8941f793924 (patch) | |
| tree | a627fc1f5bed7ed274808dd56d49efdf4b63aecc | |
| parent | bf5c4749ca49abce7049b29671582d76893ce7f1 (diff) | |
🐞 fix:
修改写入过程中磁盘判断逻辑
| -rw-r--r-- | coredump-handler/coredump-handler.go | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/coredump-handler/coredump-handler.go b/coredump-handler/coredump-handler.go index 55c5fab..694e25d 100644 --- a/coredump-handler/coredump-handler.go +++ b/coredump-handler/coredump-handler.go @@ -189,14 +189,7 @@ func writeCoreDumpToFile(config types.Coredump_config, pipe_config types.Pipecon return err } if !flag { - journal.Print(journal.PriErr, "Disk space exceeds limit after write coredump!") - err := os.RemoveAll(pipe_config.Storage) - if err != nil { - journal.Print(journal.PriErr, err.Error()) - return err - } - journal.Print(journal.PriInfo, err.Error()) - return err + return errors.New("Disk space exceeds limit when writing coredump!") } nums = 0 } |
