mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-17 05:03:20 +00:00
Small fix
This commit is contained in:
parent
e95b8089cd
commit
791a4cfb52
@ -77,7 +77,7 @@ public:
|
||||
|
||||
//To read directly into the String buf, avoiding one redundant copy
|
||||
ssize_t bytes_read = pread(fd, res_buf, file_length, 0);
|
||||
if (bytes_read == -1)
|
||||
if (-1 == bytes_read)
|
||||
throwFromErrnoWithPath("Read failed for " + std::string(filename), std::string(filename),
|
||||
errno == EBADF ? ErrorCodes::CANNOT_READ_FROM_FILE_DESCRIPTOR : ErrorCodes::ILLEGAL_COLUMN);
|
||||
if (static_cast<uint64_t>(bytes_read) != file_length)
|
||||
|
Loading…
Reference in New Issue
Block a user