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

Function readMetadataFile

src/Databases/DatabasesCommon.cpp:328–335  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

326}
327
328String readMetadataFile(std::shared_ptr<IDisk> disk, const String & file_path)
329{
330 auto read_buf = disk->readFile(file_path, getReadSettingsForMetadata());
331 String content;
332 readStringUntilEOF(content, *read_buf);
333
334 return content;
335}
336
337void writeMetadataFile(std::shared_ptr<IDisk> disk, const String & file_path, std::string_view content, bool fsync_metadata)
338{

Callers 10

alterTableMethod · 0.85
getMetadataHashMethod · 0.85
recoverLostReplicaMethod · 0.85
renameTableMethod · 0.85
readMetadataFileMethod · 0.85
loadDatabaseFunction · 0.85

Calls 3

readStringUntilEOFFunction · 0.85
readFileMethod · 0.45

Tested by

no test coverage detected