Skip to content

Commit

Permalink
rpc: fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
ciacono authored and aaronbee committed Jan 29, 2025
1 parent 8cf131a commit f083f51
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions rpc.go
Original file line number Diff line number Diff line change
Expand Up @@ -631,7 +631,7 @@ func (c *client) findRegion(ctx context.Context, table, key []byte) (hrpc.Region
}

// We are the ones that looked up the region, so we need to
// mark in unavailable and find a client for it.
// mark it unavailable and find a client for it.
reg.MarkUnavailable()

if reg != c.metaRegionInfo && reg != c.adminRegionInfo {
Expand Down Expand Up @@ -735,12 +735,12 @@ func (c *client) metaLookup(ctx context.Context,
}
if !bytes.Equal(table, fullyQualifiedTable(reg)) {
// This would indicate a bug in HBase.
return nil, "", fmt.Errorf("wtf: meta returned an entry for the wrong table!"+
return nil, "", fmt.Errorf("meta returned an entry for the wrong table!"+
" Looked up table=%q key=%q got region=%s", table, key, reg)
} else if len(reg.StopKey()) != 0 &&
bytes.Compare(key, reg.StopKey()) >= 0 {
// This would indicate a hole in the meta table.
return nil, "", fmt.Errorf("wtf: meta returned an entry for the wrong region!"+
return nil, "", fmt.Errorf("meta returned an entry for the wrong region!"+
" Looked up table=%q key=%q got region=%s", table, key, reg)
}
return reg, addr, nil
Expand Down

0 comments on commit f083f51

Please sign in to comment.