mirror of
https://github.com/MariaDB/server.git
synced 2025-09-02 09:41:40 +03:00
Bug #57666 Unclear warning with broken text in error log on INSERT DELAYED
It is not necessary to support INSERT DELAYED for a single value insert, while we do not support that for multi-values insert when binlog is enabled in SBR. The lock_type is upgrade to TL_WRITE from TL_WRITE_DELAYED for INSERT DELAYED for single value insert as multi-values insert did when binlog is enabled. Then it's safe. And binlog it as INSERT without DELAYED.
This commit is contained in:
@@ -51,8 +51,8 @@ CREATE TABLE t1(a int, UNIQUE(a));
|
||||
INSERT DELAYED IGNORE INTO t1 VALUES(1);
|
||||
INSERT DELAYED IGNORE INTO t1 VALUES(1);
|
||||
flush table t1;
|
||||
use `test`; INSERT DELAYED IGNORE INTO t1 VALUES(1)
|
||||
use `test`; INSERT DELAYED IGNORE INTO t1 VALUES(1)
|
||||
use `test`; INSERT IGNORE INTO t1 VALUES(1)
|
||||
use `test`; INSERT IGNORE INTO t1 VALUES(1)
|
||||
select * from t1;
|
||||
a
|
||||
1
|
||||
@@ -60,10 +60,10 @@ On slave
|
||||
show binlog events in 'slave-bin.000002' from <binlog_start> limit 1,6;
|
||||
Log_name Pos Event_type Server_id End_log_pos Info
|
||||
slave-bin.000002 # Query # # BEGIN
|
||||
slave-bin.000002 # Query # # use `test`; INSERT DELAYED IGNORE INTO t1 VALUES(1)
|
||||
slave-bin.000002 # Query # # use `test`; INSERT IGNORE INTO t1 VALUES(1)
|
||||
slave-bin.000002 # Query # # COMMIT
|
||||
slave-bin.000002 # Query # # BEGIN
|
||||
slave-bin.000002 # Query # # use `test`; INSERT DELAYED IGNORE INTO t1 VALUES(1)
|
||||
slave-bin.000002 # Query # # use `test`; INSERT IGNORE INTO t1 VALUES(1)
|
||||
slave-bin.000002 # Query # # COMMIT
|
||||
select * from t1;
|
||||
a
|
||||
|
Reference in New Issue
Block a user