Skip to content
This repository has been archived by the owner on Dec 16, 2022. It is now read-only.

Commit

Permalink
Add missing return on a failed GetShard call in `FindAllShardsInKey…
Browse files Browse the repository at this point in the history
…space`

Signed-off-by: Andrew Mason <amason@slack-corp.com>
  • Loading branch information
ajm188 committed Apr 29, 2021
1 parent 00a649f commit 641b442
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go/vt/topo/keyspace.go
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ func (ts *Server) FindAllShardsInKeyspace(ctx context.Context, keyspace string)
if IsErrType(err, NoNode) {
log.Warningf("GetShard(%v, %v) returned ErrNoNode, consider checking the topology.", keyspace, shard)
} else {
vterrors.Wrapf(err, "GetShard(%v, %v) failed", keyspace, shard)
return nil, vterrors.Wrapf(err, "GetShard(%v, %v) failed", keyspace, shard)
}
}
result[shard] = si
Expand Down

0 comments on commit 641b442

Please sign in to comment.