mirror of https://github.com/tikv/client-go.git
Add thread safety explanation to RegoinCache's comment (#362)
Signed-off-by: MyonKeminta <MyonKeminta@users.noreply.github.com> Co-authored-by: MyonKeminta <MyonKeminta@users.noreply.github.com>
This commit is contained in:
parent
9ec50224be
commit
5a13df80a6
|
|
@ -329,6 +329,8 @@ func (r *Region) isValid() bool {
|
|||
}
|
||||
|
||||
// RegionCache caches Regions loaded from PD.
|
||||
// All public methods of this struct should be thread-safe, unless explicitly pointed out or the method is for testing
|
||||
// purposes only.
|
||||
type RegionCache struct {
|
||||
pdClient pd.Client
|
||||
enableForwarding bool
|
||||
|
|
|
|||
Loading…
Reference in New Issue