Update MergeTreeData.cpp

This commit is contained in:
Kseniia Sumarokova 2024-12-09 13:13:56 +01:00 committed by GitHub
parent 82b932e7dc
commit 1475ccca26
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -6054,7 +6054,7 @@ MergeTreeData::MutableDataPartPtr MergeTreeData::loadPartRestoredFromBackup(cons
if (!retryable || (try_no + 1 == loading_parts_max_tries))
{
if (Exception * e = exception_cast<Exception *>(error))
e->addMessage("while restoring part {} of table {}", part->name, getStorageID());
e->addMessage("while restoring part {} of table {}", part_name, getStorageID());
std::rethrow_exception(error);
}