forked from TrueCloudLab/frostfs-node
[#1440] sdnotify: Fix status for RELOADING
Before: ``` RELOADING=1 MONOTONIC_USEC=17951246687 STATUS=RELOADING=1 MONOTONIC_USEC=17951246687 ``` After: ``` RELOADING=1 MONOTONIC_USEC=17951246687 STATUS=RELOADING ``` Signed-off-by: Anton Nikiforov <an.nikiforov@yadro.com>
This commit is contained in:
parent
ed13387c0e
commit
8b6ec57c61
1 changed files with 2 additions and 0 deletions
|
@ -59,6 +59,8 @@ func FlagAndStatus(status string) error {
|
|||
return fmt.Errorf("clock_gettime: %w", err)
|
||||
}
|
||||
status += "\nMONOTONIC_USEC=" + strconv.FormatInt(ts.Nano()/1000, 10)
|
||||
status += "\nSTATUS=RELOADING"
|
||||
return Send(status)
|
||||
}
|
||||
status += "\nSTATUS=" + strings.TrimSuffix(status, "=1")
|
||||
return Send(status)
|
||||
|
|
Loading…
Reference in a new issue