Update src/Storages/MergeTree/MergeTreeDeduplicationLog.cpp

Co-authored-by: Alexander Tokmakov <tavplubix@gmail.com>
This commit is contained in:
Han Fei 2023-07-27 16:27:04 +02:00 committed by GitHub
parent f5dfb70f5c
commit 0d44d527ef
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -241,8 +241,7 @@ std::pair<MergeTreePartInfo, bool> MergeTreeDeduplicationLog::addPart(const std:
if (stopped)
{
LOG_ERROR(&Poco::Logger::get("MergeTreeDeduplicationLog"), "Storage has been shutdown when we add this part.");
return {};
throw Exception(ErrorCodes::ABORTED, "Storage has been shutdown when we drop this part.");
}
chassert(current_writer != nullptr);