MCPcopy Create free account
hub / github.com/ClickHouse/ClickHouse / hasUUIDMapping

Method hasUUIDMapping

src/Interpreters/DatabaseCatalog.cpp:992–998  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

990}
991
992bool DatabaseCatalog::hasUUIDMapping(const UUID & uuid)
993{
994 chassert(uuid != UUIDHelpers::Nil && getFirstLevelIdx(uuid) < uuid_map.size());
995 UUIDToStorageMapPart & map_part = uuid_map[getFirstLevelIdx(uuid)];
996 std::lock_guard lock{map_part.mutex};
997 return map_part.map.contains(uuid);
998}
999
1000std::unique_ptr<DatabaseCatalog> DatabaseCatalog::database_catalog;
1001

Callers 5

loadTablesMetadataMethod · 0.80
commitCreateTableMethod · 0.80
createDatabaseMethod · 0.80
doCreateTableMethod · 0.80
maybeUnlockUUIDFunction · 0.80

Calls 2

sizeMethod · 0.45
containsMethod · 0.45

Tested by

no test coverage detected