tikv / tikv/pd

Unify the interface of GetTS and GetLocalTS

Open
#3,165 0 comments 0 reactions 0 assignees View on GitHub
component/client type/enhancement
Dominant language
Go
Stars
1.2k
Forks
783
Avg merge
5d 21h
Merged PRs (30d)
36

Description

## Feature Request

### Describe your feature request related problem

Since the PD is able to allocate the Local TSO and Global TSO now, we add a new `GetLocalTS` method to get a TSO from the specific `dc-location`. However, you can also get a Global TSO with `GetLocalTS` by passing the `"global"` as the `dc-location` parameter, which is equivalent to the `GetTS` method.

### Describe the feature you'd like

I think we should provide a new method to unify the interface of `GetTS` and `GetLocalTS`, rather than providing two different methods.

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.