tikv / tikv/pd

optimize: `UpdateServiceGCSafePoint` call back `LoadMinServiceGCSafePoint` once .

Open
#5,159 0 comments 0 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.