Fix build

This commit is contained in:
Alexey Milovidov 2021-11-25 04:18:54 +03:00
parent 7a95d7f29d
commit 2373456866

View File

@ -99,11 +99,16 @@ bool supportsRenameat2()
return supports;
}
}
#else
#define RENAME_NOREPLACE -1
#define RENAME_EXCHANGE -1
namespace DB
{
static bool renameat2(const std::string &, const std::string &, int)
{
return false;
@ -114,8 +119,13 @@ bool supportsRenameat2()
return false;
}
}
#endif
namespace DB
{
static void renameNoReplaceFallback(const std::string & old_path, const std::string & new_path)
{
/// NOTE it's unsafe