Optimise CREATE(2) by removing redundant check#9580
Conversation
|
Any way to test it? |
marcindsobczak
left a comment
There was a problem hiding this comment.
From what I understand, state.ClearStorage() is already unreachable if state is non-empty, so this PR is removing indeed redundant check.
The better question is, why our archive sync is working fine when we already have this kind of bug? Clearing non-empty storage never happened in history?
I think it probably hasn't happened as would require a hash collision so extremely unlikely |
Not really as the code is unreachable |
|
please check if no regressions in hive! |
I can't find any collision tests, might be good to have some |
Changes
Types of changes
What types of changes does your code introduce?
Testing
Requires testing
If yes, did you write tests?
Documentation
Requires documentation update
Requires explanation in Release Notes