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

Commit

Permalink
Merge pull request vitessio#7992 from tinyspeck/am_missing_return
Browse files Browse the repository at this point in the history
Add missing return on a failed `GetShard` call in `FindAllShardsInKeyspace`
  • Loading branch information
rafael authored and ajm188 committed Jul 23, 2021
1 parent 67eff9c commit 5295ac3
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 5295ac3

Please sign in to comment.