mirror of
https://github.com/zrepl/zrepl.git
synced 2025-08-10 07:27:34 +02:00
fixup 4e04f8d3d2
: snapper with separate stopped state for clean shutdown
would tight loop in ErrorWait
This commit is contained in:
@ -9,6 +9,7 @@ const (
|
||||
_State_name_1 = "Snapshotting"
|
||||
_State_name_2 = "Waiting"
|
||||
_State_name_3 = "ErrorWait"
|
||||
_State_name_4 = "Stopped"
|
||||
)
|
||||
|
||||
var (
|
||||
@ -26,6 +27,8 @@ func (i State) String() string {
|
||||
return _State_name_2
|
||||
case i == 16:
|
||||
return _State_name_3
|
||||
case i == 32:
|
||||
return _State_name_4
|
||||
default:
|
||||
return "State(" + strconv.FormatInt(int64(i), 10) + ")"
|
||||
}
|
||||
|
Reference in New Issue
Block a user