(
&self,
tenant_id: u64,
database_id: crate::types::DatabaseId,
)
| 92 | |
| 93 | impl CatalogInputs { |
| 94 | fn build_adapter( |
| 95 | &self, |
| 96 | tenant_id: u64, |
| 97 | database_id: crate::types::DatabaseId, |
| 98 | ) -> super::catalog_adapter::OriginCatalog { |
| 99 | if let Some(weak) = &self.shared |
| 100 | && let Some(shared) = weak.upgrade() |
| 101 | { |
| 102 | super::catalog_adapter::OriginCatalog::new_with_lease( |
| 103 | &shared, |
| 104 | tenant_id, |
| 105 | database_id, |
| 106 | self.retention_policy_registry.clone(), |
| 107 | ) |
| 108 | } else { |
| 109 | super::catalog_adapter::OriginCatalog::new( |
| 110 | Arc::clone(&self.credentials), |
| 111 | tenant_id, |
| 112 | database_id, |
| 113 | self.retention_policy_registry.clone(), |
| 114 | ) |
| 115 | } |
| 116 | } |
| 117 | } |
| 118 | |
| 119 | impl QueryContext { |
no test coverage detected