Merge pull request #43833 from ClickHouse/tavplubix-patch-1

Do not postpone removal of in-memory tables
This commit is contained in:
Alexander Tokmakov 2022-12-01 18:15:02 +03:00 committed by GitHub
commit 35fbff5a21
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -869,6 +869,8 @@ void DatabaseCatalog::enqueueDroppedTableCleanup(StorageID table_id, StoragePtr
{
chassert(hasUUIDMapping(table_id.uuid));
drop_time = std::chrono::system_clock::to_time_t(std::chrono::system_clock::now());
/// Do not postpone removal of in-memory tables
ignore_delay = ignore_delay || !table->storesDataOnDisk();
table->is_dropped = true;
}
else