MCPcopy Create free account
hub / github.com/ByConity/ByConity / read

Method read

src/Storages/HDFS/HDFSFileSystem.cpp:381–391  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

379}
380
381ssize_t HDFSFileSystem::read(const int fd, void *buf, size_t count)
382{
383 HDFSFSPtr fs_copy = getFS();
384 auto fin = getHDFSFileByFd(fd);
385 ssize_t ret = hdfsRead(fs_copy.get(), fin, buf, count);
386 if (ret == -1)
387 {
388 handleError(__PRETTY_FUNCTION__);
389 }
390 return ret;
391}
392
393ssize_t HDFSFileSystem::write(const int fd, const void *buf, size_t count)
394{

Callers 1

readFunction · 0.45

Calls 1

getMethod · 0.45

Tested by

no test coverage detected