Skip to main content

temporary_item_owner_session

Function temporary_item_owner_session 

Source
fn temporary_item_owner_session(
    state: &CatalogState,
    session: Option<&ConnMeta>,
    item: &CatalogItem,
    item_name: &str,
) -> Result<Uuid, AdapterError>
Expand description

Resolves the session UUID that durably owns a temporary item being created. The durable owner is the session that created the item.

The connection -> session mapping is registered lazily in catalog_transact_inner, so we defensively verify that the registered mapping matches the creating session.