-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Conversation
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
Pull request has been modified.
Codecov Report
@@ Coverage Diff @@
## master #16051 +/- ##
=======================================
Coverage 79.9% 79.9%
=======================================
Files 409 409
Lines 107723 107753 +30
=======================================
+ Hits 86142 86171 +29
- Misses 21581 21582 +1 |
Ah dang, there's an annoying case here for the new model of handling duplicate blocks as well. If somebody sends a batch with two shreds both last_index set to true, say for two shred indexes in the order |
(cherry picked from commit d76ad33)
(cherry picked from commit d76ad33)
Problem
should_insert_data_shred() should check just_inserted_data_shreds() for certain shreds
Summary of Changes
Add
get_data_shred_from_just_inserted_or_db()
to fetch data shreds safelyFixes #