forked from oceanbase/miniob
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix:修复了mvcc模式下无法正确删除由当前事务插入的记录 (oceanbase#315)
### What problem were solved in this pull request? Issue Number: close oceanbase#314 mvcc模式下无法正确删除当前事务插入的记录 ### What is changed and how it works? 在trx.delete_record添加特判,如果是删除当前事务插入的记录,就直接调用delete_record,并且也不添加到operation_里面,同时清除operation里面的相关insert_operation,这样可以保证事务内、提交后、回滚后、都能正确执行,并且不影响垃圾回收
- Loading branch information
1 parent
cec6a75
commit 98707ed
Showing
1 changed file
with
19 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters