-
-
Notifications
You must be signed in to change notification settings - Fork 141
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
fix(tianmu):The mysqld is crashed when you are starting replication.(#1523) #1540
Conversation
Thanks for the contribution! Please review the labels and make any necessary changes. |
Codecov ReportPatch coverage:
Additional details and impacted files@@ Coverage Diff @@
## stonedb-5.7-dev #1540 +/- ##
===================================================
+ Coverage 45.00% 45.05% +0.04%
===================================================
Files 1999 1999
Lines 413913 413901 -12
===================================================
+ Hits 186283 186484 +201
+ Misses 227630 227417 -213
... and 121 files with indirect coverage changes Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report in Codecov by Sentry. |
…toneatom#1523) It is possible to update null values with null values in the delta layer, For example: update t set name="xiaohua" where id=1; update t set name=null where id=1; So when encountering this situation, directly return
Value row_val = row.second; | ||
if (ct.Lookup() && row_val.HasValue()) { | ||
auto &str = row_val.GetString(); | ||
std::shared_ptr<Value> row_val = row.second; |
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.
why use shared_ptr here? please add some comments.
@@ -1168,10 +1162,6 @@ void TianmuAttr::DeleteData(uint64_t row) { | |||
CopyPackForWrite(pn); | |||
auto &dpn = get_dpn(pn); | |||
auto dpn_save = dpn; | |||
if (dpn.Trivial()) { |
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.
why remove this check?
@@ -209,30 +209,10 @@ class DelayedInsertParser final { | |||
ptr += str_len; | |||
} break; | |||
case common::PackType::INT: { | |||
if (attr->Type().Lookup()) { |
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.
why not check the Lookup() ?
It is possible to update null values with null values in the delta layer, For example:
update t set name="xiaohua" where id=1;
update t set name=null where id=1;
So when encountering this situation, directly return
Summary about this PR
Issue Number: close #1523
Tests Check List
Changelog
Documentation