Skip to content

Commit

Permalink
reorder
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Vaillancourt <tim@timvaillancourt.com>
  • Loading branch information
timvaillancourt committed Nov 23, 2024
1 parent 3d5023e commit e965a41
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go/vt/topo/tablet.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit e965a41

Please sign in to comment.