diff options
author | Marko Mäkelä <marko.makela@mariadb.com> | 2019-01-24 16:14:12 +0200 |
---|---|---|
committer | Marko Mäkelä <marko.makela@mariadb.com> | 2019-01-24 16:14:12 +0200 |
commit | 947b6b849d907dc0793f076aec7e553869db744f (patch) | |
tree | 50e7d87866ed50b8510336ce33d515ed32386754 /storage/innobase/os/os0file.cc | |
parent | 55be043c13d45581a0cecbae85d1f7de2708d891 (diff) | |
parent | fab531a150ec588f87e8a636d2ba1ecbfffdb08e (diff) | |
download | mariadb-git-947b6b849d907dc0793f076aec7e553869db744f.tar.gz |
Merge 10.2 into 10.3
Diffstat (limited to 'storage/innobase/os/os0file.cc')
-rw-r--r-- | storage/innobase/os/os0file.cc | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/storage/innobase/os/os0file.cc b/storage/innobase/os/os0file.cc index 523475d56c8..82f792ad0fa 100644 --- a/storage/innobase/os/os0file.cc +++ b/storage/innobase/os/os0file.cc @@ -2,7 +2,7 @@ Copyright (c) 1995, 2017, Oracle and/or its affiliates. All Rights Reserved. Copyright (c) 2009, Percona Inc. -Copyright (c) 2013, 2018, MariaDB Corporation. +Copyright (c) 2013, 2019, MariaDB Corporation. Portions of this file contain modifications contributed and copyrighted by Percona Inc.. Those modifications are @@ -1762,6 +1762,8 @@ LinuxAIOHandler::resubmit(Slot* slot) slot->n_bytes = 0; slot->io_already_done = false; + compile_time_assert(sizeof(off_t) >= sizeof(os_offset_t)); + struct iocb* iocb = &slot->control; if (slot->type.is_read()) { @@ -1771,7 +1773,7 @@ LinuxAIOHandler::resubmit(Slot* slot) slot->file, slot->ptr, slot->len, - static_cast<off_t>(slot->offset)); + slot->offset); } else { ut_a(slot->type.is_write()); @@ -1781,7 +1783,7 @@ LinuxAIOHandler::resubmit(Slot* slot) slot->file, slot->ptr, slot->len, - static_cast<off_t>(slot->offset)); + slot->offset); } iocb->data = slot; @@ -6260,7 +6262,7 @@ AIO::reserve_slot( #ifdef _WIN32 slot->len = static_cast<DWORD>(len); #else - slot->len = static_cast<ulint>(len); + slot->len = len; #endif /* _WIN32 */ slot->type = type; slot->buf = static_cast<byte*>(buf); |