Skip to content

Commit

Permalink
check empty keyspace
Browse files Browse the repository at this point in the history
Signed-off-by: Tim Vaillancourt <[email protected]>
  • Loading branch information
timvaillancourt committed Nov 4, 2024
1 parent 9990f04 commit 1d5fb11
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 @@ -278,7 +278,7 @@ func (ts *Server) GetTabletsByCell(ctx context.Context, cellAlias string, opt *G
return nil, err
}
if opt != nil && opt.KeyspaceShard != nil {
if opt.KeyspaceShard.Keyspace != tablet.Keyspace {
if opt.KeyspaceShard.Keyspace != "" && opt.KeyspaceShard.Keyspace != tablet.Keyspace {
continue
}
if opt.KeyspaceShard.Shard != "" && opt.KeyspaceShard.Shard != tablet.Shard {
Expand Down

0 comments on commit 1d5fb11

Please sign in to comment.