Skip to content

Commit 47be8c3

Browse files
committed
fix: avoid cleaning up instance manager info before deleting engine
Signed-off-by: Shuo Wu <shuo.wu@suse.com>
1 parent 1b2811f commit 47be8c3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

controller/instance_handler.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ func NewInstanceHandler(ds *datastore.DataStore, instanceManagerHandler Instance
5151

5252
func (h *InstanceHandler) syncStatusWithInstanceManager(log *logrus.Entry, im *longhorn.InstanceManager, instanceName string, spec *longhorn.InstanceSpec, status *longhorn.InstanceStatus, instances map[string]longhorn.InstanceProcess) {
5353
defer func() {
54-
if status.CurrentState == longhorn.InstanceStateStopped {
54+
if status.CurrentState == longhorn.InstanceStateStopped && !status.Starting {
5555
status.InstanceManagerName = ""
5656
}
5757
}()

0 commit comments

Comments
 (0)