-
Notifications
You must be signed in to change notification settings - Fork 8.7k
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
bugfix: missing some length in GlobalSession and FileTransactionStoreManager #1581
Conversation
Codecov Report
@@ Coverage Diff @@
## develop #1581 +/- ##
=============================================
+ Coverage 46.44% 46.46% +0.02%
- Complexity 1713 1714 +1
=============================================
Files 350 350
Lines 12829 12829
Branches 1616 1616
=============================================
+ Hits 5958 5961 +3
+ Misses 6224 6223 -1
+ Partials 647 645 -2
Continue to review full report at Codecov.
|
@@ -416,9 +416,9 @@ private boolean writeDataFile(byte[] bs) { | |||
} | |||
ByteBuffer byteBuffer = null; | |||
|
|||
if (bs.length > MAX_WRITE_BUFFER_SIZE) { | |||
if (bs.length + INT_BYTE_SIZE > MAX_WRITE_BUFFER_SIZE) { |
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.
revert this file change,will duplicate with https://github.com/seata/seata/pull/1552/files
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
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
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
Ⅰ. Describe what this PR did
fix missing length in GlobalSession and FileTransactionStoreManager
Ⅱ. Does this pull request fix one issue?
No.
Ⅲ. Why don't you add test cases (unit test/integration test)?
No need.
Ⅳ. Describe how to verify it
By logical
Ⅴ. Special notes for reviews
BUG