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 MessageType and TransactionErrorCode #453

Merged
merged 2 commits into from
Feb 18, 2023

Conversation

Iunyasha
Copy link
Contributor

@Iunyasha Iunyasha commented Jan 8, 2023

What this PR does:
Optimize MessageType and TransactionErrorCode

Which issue(s) this PR fixes:

Fixes #

Special notes for your reviewer:

Does this PR introduce a user-facing change?:


@codecov-commenter
Copy link

codecov-commenter commented Jan 8, 2023

Codecov Report

Merging #453 (57ee2de) into master (437f712) will not change coverage.
The diff coverage is n/a.

📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more

@@           Coverage Diff           @@
##           master     #453   +/-   ##
=======================================
  Coverage   39.05%   39.05%           
=======================================
  Files         144      144           
  Lines        9120     9120           
=======================================
  Hits         3562     3562           
  Misses       5264     5264           
  Partials      294      294           

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

*/
MessageTypeGlobalCommit MessageType = 7
MessageTypeBranchCommit
Copy link
Contributor

Choose a reason for hiding this comment

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

这里是 7?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

之前顺序是乱的,我调整了下,方便用iota

*/
MessageTypeBranchStatusReport MessageType = 13
MessageTypeGlobalLockQuery MessageType = iota + 3
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.

这里iota是递增上面的,上面的一行是iota是17,这个MessageTypeGlobalLockQuery值应该是21,中间没有其他连续的枚举值了,所以加了3

@106umao 106umao changed the title Optimize MessageType and TransactionErrorCode optimize MessageType and TransactionErrorCode Feb 11, 2023
@luky116 luky116 merged commit cf5661e into apache:master Feb 18, 2023
georgehao pushed a commit to georgehao/seata-go that referenced this pull request May 7, 2023
format MessageType and TransactionErrorCode
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants