Skip to content
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

在mvcc场景下,多事务执行删除会出错 #25

Open
RkGrit opened this issue May 31, 2024 · 0 comments
Open

在mvcc场景下,多事务执行删除会出错 #25

RkGrit opened this issue May 31, 2024 · 0 comments
Labels
bug Something isn't working transaction

Comments

@RkGrit
Copy link
Contributor

RkGrit commented May 31, 2024

如果事务1删除一条记录后尚未提交,这时事务2来删除同一张table下面的另一个记录会发生LOCKED_CONCURRENCY_CONFLICT的问题,这是因为目前的删除逻辑会先遍历table下面的每条记录,然后使用Mvcc::visit_record()做可见性判断,从而发生异常

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working transaction
Projects
None yet
Development

No branches or pull requests

1 participant