diff --git a/veilid-core/src/table_store/native.rs b/veilid-core/src/table_store/native.rs index fadbc4ef..ce38c486 100644 --- a/veilid-core/src/table_store/native.rs +++ b/veilid-core/src/table_store/native.rs @@ -17,7 +17,15 @@ impl TableStoreDriver { let tablestoredir = c.table_store.directory.clone(); std::fs::create_dir_all(&tablestoredir).map_err(VeilidAPIError::from)?; - let dbpath: PathBuf = [tablestoredir, String::from(table)].iter().collect(); + let c = self.config.get(); + let namespace = c.namespace.clone(); + let dbpath: PathBuf = if namespace.is_empty() { + [tablestoredir, String::from(table)].iter().collect() + } else { + [tablestoredir, format!("{}_{}", namespace, table)] + .iter() + .collect() + }; Ok(dbpath) }