add static storage assert in datapartcloner

This commit is contained in:
Arthur Passos 2024-01-29 15:16:00 -03:00
parent 0bbfef884c
commit 516daadeef

View File

@ -257,6 +257,7 @@ std::pair<MergeTreeDataPartCloner::MutableDataPartPtr, scope_guard> cloneAndHand
const WriteSettings & write_settings,
const IDataPartStorage::ClonePartParams & params)
{
chassert(!merge_tree_data->isStaticStorage());
if (!doesStoragePolicyAllowSameDisk(merge_tree_data, src_part))
throw Exception(
ErrorCodes::BAD_ARGUMENTS,