aboutsummaryrefslogtreecommitdiff
path: root/src/db/sled_adapter.rs
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-06-07 18:20:51 +0200
committerAlex Auvolat <alex@adnab.me>2022-06-07 18:20:51 +0200
commit845c344231280edc16c3e6a1ab65b97eb623134c (patch)
tree0361395b608ae9a243875e6568ebc6153327dbe9 /src/db/sled_adapter.rs
parentd41a67c4eea3dbb1e40e5eb0fcee28dd916c8f29 (diff)
downloadgarage-845c344231280edc16c3e6a1ab65b97eb623134c.tar.gz
garage-845c344231280edc16c3e6a1ab65b97eb623134c.zip
Inform user of what DB engine Garage is running on
Diffstat (limited to 'src/db/sled_adapter.rs')
-rw-r--r--src/db/sled_adapter.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/db/sled_adapter.rs b/src/db/sled_adapter.rs
index fb9353f0..982f8d82 100644
--- a/src/db/sled_adapter.rs
+++ b/src/db/sled_adapter.rs
@@ -58,6 +58,10 @@ impl SledDb {
}
impl IDb for SledDb {
+ fn engine(&self) -> String {
+ "Sled".into()
+ }
+
fn open_tree(&self, name: &str) -> Result<usize> {
let mut trees = self.trees.write().unwrap();
if let Some(i) = trees.1.get(name) {