diff options
author | Alex Auvolat <alex@adnab.me> | 2022-06-28 16:59:19 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2022-06-28 16:59:19 +0200 |
commit | b053fc051842677dbabe1cab294af74ed26932a4 (patch) | |
tree | 68600a49ad5a10e21e21a0a2429aa0305c12f11c /src/rpc/system.rs | |
parent | f1c972289d53e956a5837dcae2a53cc13f61ec7b (diff) | |
download | garage-b053fc051842677dbabe1cab294af74ed26932a4.tar.gz garage-b053fc051842677dbabe1cab294af74ed26932a4.zip |
Persist scrub worker thing in Persister
Diffstat (limited to 'src/rpc/system.rs')
-rw-r--r-- | src/rpc/system.rs | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/rpc/system.rs b/src/rpc/system.rs index 1d7c3ea4..77b79864 100644 --- a/src/rpc/system.rs +++ b/src/rpc/system.rs @@ -2,7 +2,7 @@ use std::collections::HashMap; use std::io::{Read, Write}; use std::net::{IpAddr, SocketAddr}; -use std::path::Path; +use std::path::{Path, PathBuf}; use std::sync::{Arc, RwLock}; use std::time::{Duration, Instant}; @@ -104,6 +104,9 @@ pub struct System { /// The job runner of this node pub background: Arc<BackgroundRunner>, + + /// Path to metadata directory (usefull) + pub metadata_dir: PathBuf, } #[derive(Debug, Clone, Serialize, Deserialize)] @@ -295,6 +298,7 @@ impl System { ring, update_ring: Mutex::new(update_ring), background, + metadata_dir: config.metadata_dir.clone(), }); sys.system_endpoint.set_handler(sys.clone()); sys |