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
optimize: unBranchLock romove xid #4750
Conversation
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.
LGTM
Codecov Report
@@ Coverage Diff @@
## develop #4750 +/- ##
=============================================
+ Coverage 48.65% 49.02% +0.36%
- Complexity 4069 4082 +13
=============================================
Files 736 736
Lines 25683 25679 -4
Branches 3170 3171 +1
=============================================
+ Hits 12495 12588 +93
+ Misses 11847 11749 -98
- Partials 1341 1342 +1
|
# Conflicts: # changes/en-us/develop.md # changes/zh-cn/develop.md
Connection conn = null; | ||
PreparedStatement ps = null; | ||
try { | ||
conn = lockStoreDataSource.getConnection(); | ||
conn.setAutoCommit(true); | ||
//batch release lock by branch | ||
String batchDeleteSQL = LockStoreSqlFactory.getLogStoreSql(dbType).getBatchDeleteLockSqlByBranch(lockTable); | ||
//batch release lock by branch list |
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.
by xid
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.
LGTM
升级2.0.0 LGTM |
Ⅰ. Describe what this PR did
AT模式,分支释放全局锁,直接使用branchId,不再使用xid+branchId
Ⅱ. Does this pull request fix one issue?
Ⅲ. Why don't you add test cases (unit test/integration test)?
Ⅳ. Describe how to verify it
Ⅴ. Special notes for reviews