Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
2
211010703
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Summer2021
211010703
Commits
129c2f32
Unverified
Commit
129c2f32
authored
3 years ago
by
tianqingzhao
Committed by
GitHub
3 years ago
Browse files
Options
Downloads
Patches
Plain Diff
optimize: optimize collectRowLocks method (#3909)
parent
32950033
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
server/src/main/java/io/seata/server/lock/AbstractLockManager.java
+5
-4
5 additions, 4 deletions
...c/main/java/io/seata/server/lock/AbstractLockManager.java
with
5 additions
and
4 deletions
server/src/main/java/io/seata/server/lock/AbstractLockManager.java
+
5
−
4
View file @
129c2f32
...
...
@@ -122,13 +122,14 @@ public abstract class AbstractLockManager implements LockManager {
if
(
branchSession
==
null
||
StringUtils
.
isBlank
(
branchSession
.
getLockKey
()))
{
return
locks
;
}
String
xid
=
branchSession
.
getXid
();
String
resourceId
=
branchSession
.
getResourceId
();
long
transactionId
=
branchSession
.
getTransactionId
();
String
lockKey
=
branchSession
.
getLockKey
();
String
resourceId
=
branchSession
.
getResourceId
();
String
xid
=
branchSession
.
getXid
();
long
transactionId
=
branchSession
.
getTransactionId
();
long
branchId
=
branchSession
.
getBranchId
();
return
collectRowLocks
(
lockKey
,
resourceId
,
xid
,
transactionId
,
branch
Session
.
getBranchId
()
);
return
collectRowLocks
(
lockKey
,
resourceId
,
xid
,
transactionId
,
branch
Id
);
}
/**
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment