mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-22 15:42:02 +00:00
Fix buffer not alloced bug
This commit is contained in:
parent
7868153098
commit
cd0f7d5b16
@ -309,7 +309,7 @@ static int bufferFromFile(Poco::Logger * log, const std::string & path, nuraft::
|
||||
::close(fd);
|
||||
return errno;
|
||||
}
|
||||
data_out->alloc(file_size);
|
||||
data_out = nuraft::buffer::alloc(file_size);
|
||||
data_out->put_raw(chunk, file_size);
|
||||
::munmap(chunk, file_size);
|
||||
::close(fd);
|
||||
|
Loading…
Reference in New Issue
Block a user