Skip to content

Commit 78fae69

Browse files
committed
change folderkey for bottomless to avoid conflict with legacy
1 parent 28adf72 commit 78fae69

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

  • libsql-wal/src/storage/backend

libsql-wal/src/storage/backend/s3.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -314,7 +314,7 @@ struct FolderKey<'a> {
314314

315315
impl fmt::Display for FolderKey<'_> {
316316
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
317-
write!(f, "ns-{}:{}-v2", self.cluster_id, self.namespace)
317+
write!(f, "v2/clusters/{}/namespaces/{}", self.cluster_id, self.namespace)
318318
}
319319
}
320320

@@ -330,10 +330,6 @@ fn s3_segment_index_lookup_key(folder_key: &FolderKey, frame_no: u64) -> String
330330
format!("{folder_key}/indexes/{:019}", u64::MAX - frame_no)
331331
}
332332

333-
fn s3_folder_key(cluster_id: &str, ns: &NamespaceName) -> String {
334-
format!("ns-{}:{}-v2", cluster_id, ns)
335-
}
336-
337333
impl<IO> Backend for S3Backend<IO>
338334
where
339335
IO: Io,

0 commit comments

Comments
 (0)