Skip to content

Commit 0e23fd0

Browse files
Backport ClickHouse#88617 to 25.8: cleanup temporary table entry from snapshot_detached_tables during table drop
1 parent b6ff78c commit 0e23fd0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/Databases/DatabaseMemory.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,7 @@ void DatabaseMemory::dropTable(
8787
std::lock_guard lock{mutex};
8888
table->is_dropped = true;
8989
create_queries.erase(table_name);
90+
snapshot_detached_tables.erase(table_name);
9091
UUID table_uuid = table->getStorageID().uuid;
9192
if (table_uuid != UUIDHelpers::Nil)
9293
DatabaseCatalog::instance().removeUUIDMappingFinally(table_uuid);

0 commit comments

Comments
 (0)