Skip to content
New issue

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

feat: Implement automatic refresh functionality for TableMetaCache #739

Merged
merged 8 commits into from
Dec 21, 2024

Conversation

Code-Fight
Copy link
Contributor

What this PR does:

Implement automatic refresh functionality for TableMetaCache

Which issue(s) this PR fixes:

Fixes #720

Special notes for your reviewer:

Does this PR introduce a user-facing change?:


@Code-Fight Code-Fight force-pushed the feature_refresh_cache branch from 830d64e to d602569 Compare December 15, 2024 13:35
@@ -92,7 +110,7 @@ func (c *BaseTableMetaCache) refresh(ctx context.Context) {

for i := range v {
tm := v[i]
if _, ok := c.cache[tm.TableName]; !ok {
if _, ok := c.cache[tm.TableName]; ok {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里是不是都得去刷新,而不用去判断原来是否存在?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

这里是不是都得去刷新,而不用去判断原来是否存在?

我看java的实现也是先判断有没有,然后再去更新有的
image
如果直接更新也行,不过也要判断,要加个初始化

@luky116 luky116 merged commit af53317 into apache:master Dec 21, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat: Implement automatic refresh functionality for TableMetaCache.
2 participants