Skip to content

Commit

Permalink
Split volsync related Secondary updates into its own function
Browse files Browse the repository at this point in the history
Signed-off-by: Shyamsundar Ranganathan <[email protected]>
  • Loading branch information
ShyamsundarR authored and BenamarMk committed Nov 16, 2024
1 parent 1d47a3b commit 39c619a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/controller/drplacementcontrolvolsync.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,10 @@ func (d *DRPCInstance) EnsureSecondaryReplicationSetup(srcCluster string) error
return fmt.Errorf("failed to find source VRG in cluster %s. VRGs %v", srcCluster, d.vrgs)
}

return d.EnsureVolSyncReplicationSetup(srcCluster)
}

func (d *DRPCInstance) EnsureVolSyncReplicationSetup(srcCluster string) error {
vsRepNeeded, err := d.IsVolSyncReplicationRequired(srcCluster)
if err != nil {
return err
Expand Down

0 comments on commit 39c619a

Please sign in to comment.