Throw NOT_IMPLEMENTED form ReadOnlyMetadataStorage::getLastChanged()

Signed-off-by: Azat Khuzhin <a.khuzhin@semrush.com>
This commit is contained in:
Azat Khuzhin 2022-10-28 18:10:00 +02:00
parent 3b7abbbff4
commit bceca73f6f

View File

@ -124,26 +124,27 @@ public:
/// Required by MergeTree
return {};
}
time_t getLastChanged(const std::string & /* path */) const override
{
return {};
}
struct stat stat(const String & /* path */) const override
{
throwNotAllowed();
}
uint32_t getHardlinkCount(const std::string & /* path */) const override
{
return 1;
}
///
/// Throw
///
struct stat stat(const String & /* path */) const override
{
throwNotAllowed();
}
time_t getLastChanged(const std::string & /* path */) const override
{
throwNotAllowed();
}
std::string readFileToString(const std::string & /* path */) const override
{
throwNotAllowed();
}
std::unordered_map<std::string, std::string> getSerializedMetadata(const std::vector<String> & /* file_paths */) const override
{
throwNotAllowed();