Skip to content

Commit

Permalink
Check if table stored data on disk to create symlink
Browse files Browse the repository at this point in the history
  • Loading branch information
kirillgarbar committed Jun 23, 2024
1 parent ce7b011 commit 2c20adb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Databases/DatabaseAtomic.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,10 @@ LoadTaskPtr DatabaseAtomic::startupDatabaseAsync(AsyncLoader & async_loader, Loa
/// All tables in database should be loaded at this point
StoragePtr table_ptr = tryGetTable(table.first, getContext());
if (table_ptr)
tryCreateSymlink(table_ptr, true);
{
if (table_ptr->storesDataOnDisk())
tryCreateSymlink(table_ptr, true);
}
else
throw Exception(ErrorCodes::LOGICAL_ERROR, "Table {} is not loaded before database startup", table.first);
}
Expand Down

0 comments on commit 2c20adb

Please sign in to comment.