diff options
author | Alex Auvolat <alex@adnab.me> | 2022-06-07 18:20:51 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2022-06-07 18:20:51 +0200 |
commit | 845c344231280edc16c3e6a1ab65b97eb623134c (patch) | |
tree | 0361395b608ae9a243875e6568ebc6153327dbe9 /src/api | |
parent | d41a67c4eea3dbb1e40e5eb0fcee28dd916c8f29 (diff) | |
download | garage-845c344231280edc16c3e6a1ab65b97eb623134c.tar.gz garage-845c344231280edc16c3e6a1ab65b97eb623134c.zip |
Inform user of what DB engine Garage is running on
Diffstat (limited to 'src/api')
-rw-r--r-- | src/api/admin/cluster.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/api/admin/cluster.rs b/src/api/admin/cluster.rs index 6d01317d..4b7716a3 100644 --- a/src/api/admin/cluster.rs +++ b/src/api/admin/cluster.rs @@ -19,6 +19,7 @@ pub async fn handle_get_cluster_status(garage: &Arc<Garage>) -> Result<Response< let res = GetClusterStatusResponse { node: hex::encode(garage.system.id), garage_version: garage.system.garage_version(), + db_engine: garage.db.engine(), known_nodes: garage .system .get_known_nodes() @@ -98,6 +99,7 @@ fn get_cluster_layout(garage: &Arc<Garage>) -> GetClusterLayoutResponse { struct GetClusterStatusResponse { node: String, garage_version: &'static str, + db_engine: String, known_nodes: HashMap<String, KnownNodeResp>, layout: GetClusterLayoutResponse, } |