-
Notifications
You must be signed in to change notification settings - Fork 286
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
fix: apache/incubator-seata#6678 #718
base: master
Are you sure you want to change the base?
Conversation
@@ -92,8 +93,9 @@ func (c *BaseTableMetaCache) refresh(ctx context.Context) { | |||
|
|||
for i := range v { | |||
tm := v[i] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
问题不大,补一个单测
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
只改一处,可能会到缓存失效,改一下GetTableMeta 确保一致
@@ -92,8 +93,9 @@ func (c *BaseTableMetaCache) refresh(ctx context.Context) { | |||
|
|||
for i := range v { | |||
tm := v[i] | |||
if _, ok := c.cache[tm.TableName]; !ok { | |||
c.cache[tm.TableName] = &entry{ | |||
var upperTableName = strings.ToUpper(tm.TableName) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个ToUpper仅在refresh的加不行,需要在GetTableMeta的时,保证都是一致的
Quality Gate failedFailed conditions |
What this PR does:
Convert table names to uppercase in cache, preventing different tables from being found
Which issue(s) this PR fixes:
Fixes #711
Special notes for your reviewer:
Does this PR introduce a user-facing change?: