Skip to content

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

@RkGrit

Description

@RkGrit

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions