From 9e69d8f68d974811417e73ea84b4f56f4f2e2a03 Mon Sep 17 00:00:00 2001 From: Handora Date: Tue, 18 Jul 2023 03:12:08 +0000 Subject: [PATCH] [BUG] prevent protection for insert and delete for insert on dup --- src/storage/memtable/ob_concurrent_control.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/storage/memtable/ob_concurrent_control.cpp b/src/storage/memtable/ob_concurrent_control.cpp index ff2174f7eb..01958779e4 100644 --- a/src/storage/memtable/ob_concurrent_control.cpp +++ b/src/storage/memtable/ob_concurrent_control.cpp @@ -129,9 +129,7 @@ int check_sequence_set_violation(const concurrent_control::ObWriteFlag write_fla // same row more than once if the sql insert onto duplicate with the // same row more than once. It may have no chance to batch the same row. // So we need bypass this case. - } else if (write_flag.is_insert_up() - && blocksstable::ObDmlFlag::DF_UPDATE == writer_dml_flag - && blocksstable::ObDmlFlag::DF_UPDATE == locker_dml_flag) { + } else if (write_flag.is_insert_up()) { // bypass the case // Case 9: For the case of the write only index, it may operate the same // row more than once under the case that main table has two rows pointing