Skip to content

Commit 3fe830f

Browse files
jkatzandrewlecuyer
andauthored
Adjust replica creation logic as part of a standby cluster
This ensures an explicit call of standby creation after receiving a notification that a stanza for the cluster was successfully created. Co-authored-by: Andrew L'Ecuyer <[email protected]>
1 parent d07b899 commit 3fe830f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

internal/controller/job/backresthandler.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,9 @@ func (c *Controller) handleBackrestStanzaCreateUpdate(job *apiv1.Job) error {
139139
log.Debugf("job Controller: standby cluster %s will now be set to an initialized "+
140140
"status", clusterName)
141141
_ = controller.SetClusterInitializedStatus(c.Client, clusterName, namespace)
142+
143+
// now initialize the creation of any replica
144+
_ = controller.InitializeReplicaCreation(c.Client, clusterName, namespace)
142145
return nil
143146
}
144147

0 commit comments

Comments
 (0)