Skip to content

Commit a0f9999

Browse files
authored
synced from vm lib (#453)
1 parent 2c14db4 commit a0f9999

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

lib/charms/mysql/v0/async_replication.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -391,8 +391,11 @@ def state(self) -> Optional[States]:
391391
else:
392392
return States.RECOVERING
393393
if self.role.relation_side == RELATION_CONSUMER:
394-
# if on the consume and is primary, the cluster is ready
395-
return States.READY
394+
# if on the consume and is primary
395+
# the cluster is ready when fully initialized
396+
if self._charm.cluster_fully_initialized:
397+
return States.READY
398+
return States.RECOVERING
396399

397400
@property
398401
def idle(self) -> bool:

0 commit comments

Comments
 (0)