Fix the wrong compare of catalog cache's mvcc #13440
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
What type of PR is this?
Which issue(s) this PR fixes:
issue #https://github.com/matrixorigin/MO-Cloud/issues/2009
What this PR does / why we need it:
对于类似于以下场景:
会出现表找不到的情况,本质原因是因为上述事务会产生以下logtail:
因为多版本k的比较代码存在如下的代码:
所以会生成k1, k2, k0类似于这样的序列,这样的情况会导致表找不到。修改为delete只比需要删除的key大来修正这个问题