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

Method write

src/Storages/HDFS/HDFSFileSystem.cpp:393–403  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

391}
392
393ssize_t HDFSFileSystem::write(const int fd, const void *buf, size_t count)
394{
395 HDFSFSPtr fs_copy = getFS();
396 auto file = getHDFSFileByFd(fd);
397 ssize_t ret = hdfsWrite(fs_copy.get(), file, buf, count);
398 if (ret == -1)
399 {
400 handleError(__PRETTY_FUNCTION__);
401 }
402 return ret;
403}
404
405bool HDFSFileSystem::copyTo(const std::string& path,
406 const std::string& rpath)

Callers 1

writeFunction · 0.45

Calls 1

getMethod · 0.45

Tested by

no test coverage detected