fix: Delete now-unused list_possible_databases function
@@ -153,35 +153,6 @@ impl IoxObjectStore {
RootPath::new(inner, server_id, database_name)
}
- /// List database names and their locations in object storage that need to be further checked
- /// for generations and whether they're marked as deleted or not.
- // TODO: this is in the process of being deprecated in favor of get_server_config_file
- pub async fn list_possible_databases(
- inner: &ObjectStore,
- server_id: ServerId,
- ) -> Result<Vec<(DatabaseName<'static>, String)>> {
- let path = paths::all_databases_path(inner, server_id);
-
- let list_result = inner.list_with_delimiter(&path).await?;
-
- Ok(list_result
- .common_prefixes
- .into_iter()
- .filter_map(|prefix| {
- let prefix_parsed: DirsAndFileName = prefix.clone().into();
- let last = prefix_parsed
- .directories
- .last()
- .expect("path can't be empty");
- let db_name = DatabaseName::new(last.encoded().to_string())
- .log_if_error("invalid database directory")
- .ok()?;
-
- Some((db_name, prefix.to_raw()))
- })
- .collect())
- }
-
/// List this server's databases in object storage along with their generation IDs.
pub async fn list_detailed_databases(
inner: &ObjectStore,
