optimize: `UpdateServiceGCSafePoint` call back `LoadMinServiceGCSafePoint` once .
Open
type/enhancement
- Dominant language
- Go
- Stars
- 1.2k
- Forks
- 783
- Avg merge
- 5d 21h
- Merged PRs (30d)
- 36
Description
## Enhancement Task
In past, the function of `UpdateServiceGCSafePoint` may call back `LoadMinServiceGCSafePoint` twice if the minimum gc is the given serviceID. The function of `LoadMinServiceGCSafePoint` may returns two gc points (gc1,gc2) ,it returns gc2 if the minimum
is the given serviceID.
Some related code is :
https://github.com/tikv/pd/blob/d263b8586123387d219bdccf9a1733632ab0d9c2/server/grpc_service.go#L1387-L1416
Contributor guide
Assessment
This issue has not been assessed yet.