mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
possible conflict w private
This commit is contained in:
parent
c725b66225
commit
bf0c609353
@ -35,12 +35,13 @@ public:
|
||||
{
|
||||
if (!path_from.has_value())
|
||||
return std::make_unique<ReadBufferFromFileDescriptor>(STDIN_FILENO);
|
||||
String relative_path_from = disk.getRelativeFromRoot(path_from.value());
|
||||
auto res = disk.getDisk()->readFileIfExists(relative_path_from, getReadSettings());
|
||||
if (res)
|
||||
return res;
|
||||
/// For backward compatibility.
|
||||
return std::make_unique<ReadBufferFromEmptyFile>();
|
||||
|
||||
String relative_path_from = disk.getRelativeFromRoot(path_from.value());
|
||||
auto res = disk.getDisk()->readFileIfExists(relative_path_from, getReadSettings());
|
||||
if (res)
|
||||
return res;
|
||||
/// For backward compatibility.
|
||||
return std::make_unique<ReadBufferFromEmptyFile>();
|
||||
}();
|
||||
|
||||
auto out = disk.getDisk()->writeFile(path_to);
|
||||
|
Loading…
Reference in New Issue
Block a user