-
Notifications
You must be signed in to change notification settings - Fork 600
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
Remove unused table versions along with schema versions in TSchemaVer… #10058
Remove unused table versions along with schema versions in TSchemaVer… #10058
Conversation
⚪ Test history | Ya make output | Test bloat
🟢
*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation |
⚪ Test history | Ya make output | Test bloat
⚪ Test history | Ya make output | Test bloat | Test bloat
🟢
*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation |
⚪ Test history | Ya make output | Test bloat
🟢
*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation |
⚪ Test history | Ya make output | Test bloat
⚪ Test history | Ya make output | Test bloat | Test bloat
🟢
*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation |
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.
Некритичные комментарии. Если надо срочно применить нормалайзер, то могу шипнуть.
for (const auto& id: unusedTableSchemaIds) { | ||
if (!maxVersion.has_value() || (id.Version != *maxVersion)) { | ||
tablePortion.push_back(id); | ||
if (portion.size() + tablePortion.size() >= 10000) { |
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.
Конструкция if (... >= 10000) { changes.emplace_back(...); }
повторяется -- кажется, это стоит вынести в лямбду и переиспользовать её.
Ещё вектор после std::move() в общем случае невалидный, поэтому, чтобы не было UB, надо его инициализировать заново после мува. По-идее, это может привести к UB в зависимости от реализации STL.
⚪ Test history | Ya make output | Test bloat
🟢
*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation |
⚪ Test history | Ya make output | Test bloat
⚪ Test history | Ya make output | Test bloat | Test bloat
🟢
*please be aware that the difference is based on comparing your commit and the last completed build from the post-commit, check comparation |
…sionNormalizer
Changelog entry
...
Changelog category
Additional information
...