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模式下无法正确删除当前事务插入的记录[BUG] #314

Closed
Fischer0522 opened this issue Nov 8, 2023 · 0 comments · Fixed by #315
Closed

mvcc模式下无法正确删除当前事务插入的记录[BUG] #314

Fischer0522 opened this issue Nov 8, 2023 · 0 comments · Fixed by #315
Assignees
Labels
bug Something isn't working

Comments

@Fischer0522
Copy link
Contributor

Describe the bug
mvcc模式下无法正确删除当前事务插入的记录

在trx.delete_record添加特判,如果是删除当前事务插入的记录,就直接调用delete_record,并且也不添加到operation_里面,同时清除operation里面的相关insert_operation,这样可以保证事务内、提交后、回滚后、都能正确执行,并且不影响垃圾回收

@Fischer0522 Fischer0522 added the bug Something isn't working label Nov 8, 2023
@Fischer0522 Fischer0522 changed the title [BUG] mvcc模式下无法正确删除当前事务插入的记录[BUG] Nov 8, 2023
hnwyllmm pushed a commit that referenced this issue Nov 8, 2023
### What problem were solved in this pull request?

Issue Number: close #314 
mvcc模式下无法正确删除当前事务插入的记录


### What is changed and how it works?

在trx.delete_record添加特判,如果是删除当前事务插入的记录,就直接调用delete_record,并且也不添加到operation_里面,同时清除operation里面的相关insert_operation,这样可以保证事务内、提交后、回滚后、都能正确执行,并且不影响垃圾回收
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant