src/api2/types.rs: define and use api type GarbageCollectionStatus

This commit is contained in:
Dietmar Maurer
2020-01-23 13:31:52 +01:00
parent dfc58d47ad
commit a92830dc39
4 changed files with 62 additions and 45 deletions

View File

@ -8,7 +8,7 @@ use lazy_static::lazy_static;
use chrono::{DateTime, Utc};
use super::backup_info::{BackupGroup, BackupDir};
use super::chunk_store::{ChunkStore, GarbageCollectionStatus};
use super::chunk_store::ChunkStore;
use super::dynamic_index::{DynamicIndexReader, DynamicIndexWriter};
use super::fixed_index::{FixedIndexReader, FixedIndexWriter};
use super::manifest::{MANIFEST_BLOB_NAME, BackupManifest};
@ -17,6 +17,7 @@ use super::{DataBlob, ArchiveType, archive_type};
use crate::config::datastore;
use crate::server::WorkerTask;
use crate::tools;
use crate::api2::types::GarbageCollectionStatus;
lazy_static! {
static ref DATASTORE_MAP: Mutex<HashMap<String, Arc<DataStore>>> = Mutex::new(HashMap::new());