diff --git a/rust/lancedb/src/io/object_store.rs b/rust/lancedb/src/io/object_store.rs index a6af49da..5664551d 100644 --- a/rust/lancedb/src/io/object_store.rs +++ b/rust/lancedb/src/io/object_store.rs @@ -58,7 +58,10 @@ impl MirroringObjectStore { impl std::fmt::Display for MirroringObjectStore { fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result { - writeln!(f, "MirroringObjectStore")?; + write!(f, "MirroringObjectStore(secondary_copy_behavior=")?; + self.secondary_copy_behavior.fmt(f)?; + writeln!(f, ")")?; + writeln!(f, "primary:")?; self.primary.fmt(f)?; writeln!(f, "secondary:")?; @@ -94,6 +97,17 @@ impl Default for MirroringSecondaryCopy { } } +impl std::fmt::Display for MirroringSecondaryCopy { + fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result { + match self { + Self::Copy => write!(f, "Copy"), + Self::SkipIfNotFound => write!(f, "SkipIfNotFound"), + }?; + + Ok(()) + } +} + /// An object store that mirrors write to secondary object store first /// and than commit to primary object store. ///