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

optimize: use hget replace hmget because only one field #4761

Merged
merged 10 commits into from Aug 1, 2022

Conversation

conghuhu
Copy link
Contributor

@conghuhu conghuhu commented Jul 9, 2022

  • I have registered the PR changes.

Ⅰ. Describe what this PR did

In io.seata.server.storage.redis.lock.RedisLocker and 362 line, there only one field, so we should use hget not hmget

Ⅱ. Does this pull request fix one issue?

Ⅲ. Why don't you add test cases (unit test/integration test)?

Ⅳ. Describe how to verify it

run io.seata.server.lock.redis.RedisLockManagerTest#unLock()

Ⅴ. Special notes for reviews

@codecov-commenter
Copy link

codecov-commenter commented Jul 13, 2022

Codecov Report

Merging #4761 (5238ca0) into develop (7668cd4) will decrease coverage by 0.00%.
The diff coverage is 100.00%.

Impacted file tree graph

@@              Coverage Diff              @@
##             develop    #4761      +/-   ##
=============================================
- Coverage      49.20%   49.20%   -0.01%     
+ Complexity      4091     4090       -1     
=============================================
  Files            736      736              
  Lines          25723    25723              
  Branches        3177     3177              
=============================================
- Hits           12657    12656       -1     
  Misses         11716    11716              
- Partials        1350     1351       +1     
Impacted Files Coverage Δ
...o/seata/server/storage/redis/lock/RedisLocker.java 36.45% <100.00%> (ø)
...erver/storage/file/session/FileSessionManager.java 47.77% <0.00%> (-0.64%) ⬇️

Copy link
Contributor

@funky-eyes funky-eyes left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@caohdgege caohdgege left a comment

Choose a reason for hiding this comment

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

LGTM

@funky-eyes funky-eyes added this to the 1.6.0 milestone Jul 31, 2022
@funky-eyes funky-eyes changed the title Optimize: use hget replace hmget because only one field optimize: use hget replace hmget because only one field Jul 31, 2022
@funky-eyes funky-eyes merged commit eeb237c into apache:develop Aug 1, 2022
@funky-eyes funky-eyes added the module/server server module label Feb 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
module/server server module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

7 participants