File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -469,16 +469,16 @@ func (c *baseClient) initConn(ctx context.Context, cn *pool.Conn) error {
469
469
// enabled mode, fail the connection
470
470
c .optLock .RUnlock ()
471
471
return fmt .Errorf ("failed to enable maintenance notifications: %w" , hitlessHandshakeErr )
472
- case hitless . MaintNotificationsAuto :
472
+ default : // will handle auto and any other
473
473
c .optLock .RUnlock ()
474
474
c .optLock .Lock ()
475
+ c .opt .HitlessUpgradeConfig .Enabled = hitless .MaintNotificationsDisabled
476
+ c .optLock .Unlock ()
475
477
// auto mode, disable hitless upgrades and continue
476
478
if err := c .disableHitlessUpgrades (); err != nil {
477
479
// Log error but continue - auto mode should be resilient
478
480
internal .Logger .Printf (ctx , "hitless: failed to disable hitless upgrades in auto mode: %v" , err )
479
481
}
480
- c .opt .HitlessUpgradeConfig .Enabled = hitless .MaintNotificationsDisabled
481
- c .optLock .Unlock ()
482
482
}
483
483
} else {
484
484
// handshake was executed successfully
You can’t perform that action at this time.
0 commit comments