mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
iotest slightly fixed [#CONV-5680].
This commit is contained in:
parent
b75d9bcc21
commit
bb98220c44
@ -45,8 +45,9 @@ struct AlignedBuffer
|
||||
|
||||
AlignedBuffer(int size_)
|
||||
{
|
||||
size_t page = sysconf(_SC_PAGESIZE);
|
||||
size = size_;
|
||||
data = static_cast<char*>(memalign(size, size));
|
||||
data = static_cast<char*>(memalign(page, (size + page - 1) / page * page));
|
||||
if (!data)
|
||||
throwFromErrno("memalign failed");
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user