From 66f0b6d08bf720b768c0b779e891701a6ba95022 Mon Sep 17 00:00:00 2001 From: Manan Gupta Date: Wed, 25 Sep 2024 10:43:25 +0530 Subject: [PATCH] feat: fix encoding of primary position that we send down Signed-off-by: Manan Gupta --- go/vt/vtctl/reparentutil/emergency_reparenter.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go/vt/vtctl/reparentutil/emergency_reparenter.go b/go/vt/vtctl/reparentutil/emergency_reparenter.go index 7f99a7915fc..81c9ca8d312 100644 --- a/go/vt/vtctl/reparentutil/emergency_reparenter.go +++ b/go/vt/vtctl/reparentutil/emergency_reparenter.go @@ -543,7 +543,7 @@ func (erp *EmergencyReparenter) reparentReplicas( return nil } - latestPosStr := latestPosition.String() + latestPosStr := replication.EncodePosition(latestPosition) handleReplica := func(alias string, ti *topo.TabletInfo) { defer replWg.Done() erp.logger.Infof("setting new primary on replica %v", alias)