Skip to content

Commit

Permalink
fix missing piece
Browse files Browse the repository at this point in the history
  • Loading branch information
tanjinx committed Jun 28, 2024
1 parent 31bb813 commit cd5adbb
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions go/vt/topo/topoproto/srvkeyspace.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,9 @@ func (sra ShardReferenceArray) Sort() { sort.Sort(sra) }
// SrvKeyspaceGetPartition returns a Partition for the given tablet type,
// or nil if it's not there.
func SrvKeyspaceGetPartition(sk *topodatapb.SrvKeyspace, tabletType topodatapb.TabletType) *topodatapb.SrvKeyspace_KeyspacePartition {
if sk == nil {
return nil
}
for _, p := range sk.Partitions {
if p.ServedType == tabletType {
return p
Expand Down

0 comments on commit cd5adbb

Please sign in to comment.