From e965a4178f9c323d32354cfb6e9afc8c7ff82667 Mon Sep 17 00:00:00 2001 From: Tim Vaillancourt Date: Sat, 23 Nov 2024 03:14:36 +0100 Subject: [PATCH] reorder Signed-off-by: Tim Vaillancourt --- go/vt/topo/tablet.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/go/vt/topo/tablet.go b/go/vt/topo/tablet.go index fcdce3195b7..10ba787a3c1 100644 --- a/go/vt/topo/tablet.go +++ b/go/vt/topo/tablet.go @@ -495,9 +495,9 @@ func (ts *Server) GetTabletMap(ctx context.Context, tabletAliases []*topodatapb. wg.Add(1) go func(tabletAlias *topodatapb.TabletAlias) { defer wg.Done() + tabletInfo, err := ts.GetTablet(ctx, tabletAlias) mu.Lock() defer mu.Unlock() - tabletInfo, err := ts.GetTablet(ctx, tabletAlias) if err != nil { log.Warningf("%v: %v", tabletAlias, err) // There can be data races removing nodes - ignore them for now.