Get rid of OnPreCommitUnsafe
and LockInsideApply & LockOutsideApply
#16749
Labels
OnPreCommitUnsafe
and LockInsideApply & LockOutsideApply
#16749
What would you like to be added?
Previously the data inconsistent issue was introduced in #12964 and #12855 (added OnPreCommitUnsafe in #12855). In order to fix it, I introduced the ugly LockInsideApply & LockOutsideApply in #13854. It makes the consistent_index related logic is even more complicated and error prone. It needs huge caution each time when we update consistent_index related source code.
Since the first day when I started to fix #13766, I have been thinking to get rid of
OnPreCommitUnsafe
andLockInsideApply & LockOutsideApply
, so as to improve readability and maintainability of the project.Why is this needed?
Improve readability and maintainability
The text was updated successfully, but these errors were encountered: