mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-18 05:32:52 +00:00
fix
This commit is contained in:
parent
3150667aa3
commit
797fa400b4
@ -654,7 +654,7 @@ void SSDCachePartition::getValueFromStorage(const PaddedPODArray<Index> & indice
|
||||
#endif
|
||||
}
|
||||
#if defined(__FreeBSD__)
|
||||
const char* buf_ptr = reinterpret_cast<UInt64>(request.aio.aio_buf);
|
||||
const char* buf_ptr = reinterpret_cast<char *>(reinterpret_cast<UInt64>(request.aio.aio_buf));
|
||||
#else
|
||||
const auto* buf_ptr = reinterpret_cast<char *>(request.aio_buf);
|
||||
#endif
|
||||
@ -736,7 +736,7 @@ void SSDCachePartition::clearOldestBlocks()
|
||||
}
|
||||
|
||||
#if defined(__FreeBSD__)
|
||||
if (event.aio.res != static_cast<ssize_t>(request.aio.aio_nbytes))
|
||||
if (event.aio.udata != static_cast<ssize_t>(request.aio.aio_nbytes))
|
||||
throw Exception("GC: AIO failed to read file " + path + BIN_FILE_EXT + ".", ErrorCodes::AIO_READ_ERROR);
|
||||
#else
|
||||
if (event.res != static_cast<ssize_t>(request.aio_nbytes))
|
||||
|
@ -689,7 +689,7 @@ void SSDComplexKeyCachePartition::getValueFromStorage(const PaddedPODArray<Index
|
||||
#endif
|
||||
}
|
||||
#if defined(__FreeBSD__)
|
||||
const char* buf_ptr = reinterpret_cast<UInt64>(request.aio.aio_buf);
|
||||
const char* buf_ptr = reinterpret_cast<char *>(reinterpret_cast<UInt64>(request.aio.aio_buf));
|
||||
#else
|
||||
const auto* buf_ptr = reinterpret_cast<char *>(request.aio_buf);
|
||||
#endif
|
||||
@ -772,7 +772,7 @@ void SSDComplexKeyCachePartition::clearOldestBlocks()
|
||||
}
|
||||
|
||||
#if defined(__FreeBSD__)
|
||||
if (event.aio.res != static_cast<ssize_t>(request.aio.aio_nbytes))
|
||||
if (event.aio.udata != static_cast<ssize_t>(request.aio.aio_nbytes))
|
||||
throw Exception("GC: AIO failed to read file " + path + BIN_FILE_EXT + ".", ErrorCodes::AIO_READ_ERROR);
|
||||
#else
|
||||
if (event.res != static_cast<ssize_t>(request.aio_nbytes))
|
||||
|
Loading…
Reference in New Issue
Block a user