mirror of
https://github.com/MariaDB/server.git
synced 2025-08-15 22:37:22 +00:00
MDEV-27048 UBSAN: runtime error: shift exponent 32 is too large for 32-bit type 'unsigned int'
32-bit variable must be expanded to 64-bit before shift left.
This commit is contained in:
@ -2545,7 +2545,7 @@ bool ddl_log_write_execute_entry(uint first_entry,
|
||||
|
||||
file_entry_buf[DDL_LOG_ENTRY_TYPE_POS]= (uchar)DDL_LOG_EXECUTE_CODE;
|
||||
int4store(file_entry_buf + DDL_LOG_NEXT_ENTRY_POS, first_entry);
|
||||
int8store(file_entry_buf + DDL_LOG_ID_POS, (cond_entry << DDL_LOG_RETRY_BITS));
|
||||
int8store(file_entry_buf + DDL_LOG_ID_POS, ((ulonglong)cond_entry << DDL_LOG_RETRY_BITS));
|
||||
|
||||
if (!(*active_entry))
|
||||
{
|
||||
|
Reference in New Issue
Block a user