MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / writeFile

Method writeFile

src/Disks/DiskLocal.cpp:428–442  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

426}
427
428std::unique_ptr<WriteBufferFromFileBase>
429DiskLocal::writeFile(const String & path, size_t buf_size, WriteMode mode, const WriteSettings & settings)
430{
431 int flags = (mode == WriteMode::Append) ? (O_APPEND | O_CREAT | O_WRONLY) : -1;
432 return std::make_unique<WriteBufferFromFile>(
433 fs::path(disk_path) / path,
434 buf_size,
435 flags,
436 settings.local_throttler,
437 0666,
438 nullptr,
439 0,
440 settings.use_adaptive_write_buffer,
441 settings.adaptive_write_buffer_initial_size);
442}
443
444std::vector<String> DiskLocal::getBlobPath(const String & path) const
445{

Callers 6

executeImplMethod · 0.45
executeImplMethod · 0.45
executeImplMethod · 0.45
iFunction · 0.45
copyFileMethod · 0.45
writeMetadataFileFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected