diff options
author | Eugene Kosov <claprix@yandex.ru> | 2021-11-29 18:55:16 +0600 |
---|---|---|
committer | Eugene Kosov <claprix@yandex.ru> | 2021-12-03 14:57:23 +0600 |
commit | 5d7da02793b514644574b35eff8aa480d98b6a5d (patch) | |
tree | f117418578381f47b571c8835669d2d66273c390 | |
parent | d2a7710635e01c20b6329753ea0cbbe7fb429657 (diff) | |
download | mariadb-git-5d7da02793b514644574b35eff8aa480d98b6a5d.tar.gz |
MDEV-27139 32-bit systems fail to use big innodb-log-file-size
log_write_buf(): do not cast to size_t which prevents to write to files
which a bigger that 4G and remove useless assertion
-rw-r--r-- | storage/innobase/log/log0log.cc | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/storage/innobase/log/log0log.cc b/storage/innobase/log/log0log.cc index f677aedc87c..906979ffe20 100644 --- a/storage/innobase/log/log0log.cc +++ b/storage/innobase/log/log0log.cc @@ -610,9 +610,7 @@ loop: log_block_store_checksum(buf + i * OS_FILE_LOG_BLOCK_SIZE); } - ut_a((next_offset >> srv_page_size_shift) <= ULINT_MAX); - - log_sys.log.write(static_cast<size_t>(next_offset), {buf, write_len}); + log_sys.log.write(next_offset, {buf, write_len}); if (write_len < len) { start_lsn += write_len; |