Skip to content

Commit

Permalink
Weakly canoncal table data path for symlinks
Browse files Browse the repository at this point in the history
  • Loading branch information
kirillgarbar committed Apr 14, 2024
1 parent 4624877 commit ce7b011
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Databases/DatabaseAtomic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -513,7 +513,7 @@ void DatabaseAtomic::tryCreateSymlink(const StoragePtr & table, bool if_data_pat
throw Exception(ErrorCodes::LOGICAL_ERROR, "Table {} doesn't have data path to create symlink", table_name);

String link = path_to_table_symlinks + escapeForFileName(table_name);
fs::path data = fs::canonical(table->getDataPaths()[0]);
fs::path data = fs::weakly_canonical(table->getDataPaths()[0]);

/// If it already points where needed.
std::error_code ec;
Expand Down

0 comments on commit ce7b011

Please sign in to comment.