Look up an existing handle without creating one. Returns `None` when the collection has no dedicated arena yet.
(&self, tenant_id: u64, collection: &str)
| 86 | /// Look up an existing handle without creating one. Returns `None` when |
| 87 | /// the collection has no dedicated arena yet. |
| 88 | pub fn get(&self, tenant_id: u64, collection: &str) -> Option<CollectionArenaHandle> { |
| 89 | let guard = self.inner.lock().ok()?; |
| 90 | guard |
| 91 | .handles |
| 92 | .get(&(tenant_id, collection.to_string())) |
| 93 | .cloned() |
| 94 | } |
| 95 | } |
| 96 | |
| 97 | /// Build a handle, creating a new jemalloc arena when possible. |
no test coverage detected