mirror of
https://github.com/MariaDB/server.git
synced 2025-01-16 12:02:42 +01:00
split an assert
This commit is contained in:
parent
de4cfabe5f
commit
b4daf8efac
1 changed files with 2 additions and 2 deletions
|
@ -8653,8 +8653,8 @@ void translog_set_file_size(uint32 size)
|
|||
DBUG_ENTER("translog_set_file_size");
|
||||
translog_lock();
|
||||
DBUG_PRINT("enter", ("Size: %lu", (ulong) size));
|
||||
DBUG_ASSERT(size % TRANSLOG_PAGE_SIZE == 0 &&
|
||||
size >= TRANSLOG_MIN_FILE_SIZE);
|
||||
DBUG_ASSERT(size % TRANSLOG_PAGE_SIZE == 0);
|
||||
DBUG_ASSERT(size >= TRANSLOG_MIN_FILE_SIZE);
|
||||
log_descriptor.log_file_max_size= size;
|
||||
/* if current file longer then finish it*/
|
||||
if (LSN_OFFSET(log_descriptor.horizon) >= log_descriptor.log_file_max_size)
|
||||
|
|
Loading…
Reference in a new issue