We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If there are a lot of RPC request to a same table, but the region information not in cache.
func (c *client) findRegion(ctx context.Context, table, key []byte) (hrpc.RegionInfo, error) { //get or create table related lcck in hash var tableName = string(table) var iLock, _ = c.tMetaLockHash.LoadOrStore(tableName, &sync.Mutex{}) var lock = iLock.(*sync.Mutex) locker.Lock() defer locker.Unlock() if reg := c.getRegionFromCache(table, key); reg != nil { return reg, nil } .....
The text was updated successfully, but these errors were encountered:
No branches or pull requests
If there are a lot of RPC request to a same table, but the region information not in cache.
The text was updated successfully, but these errors were encountered: