From 39c619a4f6771bead2a90ca2bd44ff4acde1e451 Mon Sep 17 00:00:00 2001 From: Shyamsundar Ranganathan Date: Fri, 15 Nov 2024 12:07:02 -0500 Subject: [PATCH] Split volsync related Secondary updates into its own function Signed-off-by: Shyamsundar Ranganathan --- internal/controller/drplacementcontrolvolsync.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/controller/drplacementcontrolvolsync.go b/internal/controller/drplacementcontrolvolsync.go index efd05ed65..df6b4eeb8 100644 --- a/internal/controller/drplacementcontrolvolsync.go +++ b/internal/controller/drplacementcontrolvolsync.go @@ -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