Skip to content
This repository was archived by the owner on Oct 18, 2023. It is now read-only.

Commit bded15e

Browse files
authored
bottomless: append namespace to db_id (#652)
* bottomless: append namespace to db_id * append namespace instead of prepending it
1 parent c2e5678 commit bded15e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

sqld/src/namespace.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,9 @@ pub type DumpStream =
381381

382382
fn make_bottomless_options(options: &Options, name: &Bytes) -> Options {
383383
let mut options = options.clone();
384-
let db_id = format!("ns-{}", std::str::from_utf8(name).unwrap());
384+
let namespace = std::str::from_utf8(name).unwrap();
385+
let db_id = options.db_id.unwrap_or_default();
386+
let db_id = format!("ns-{db_id}:{namespace}");
385387
options.db_id = Some(db_id);
386388
options
387389
}

0 commit comments

Comments
 (0)