diff options
Diffstat (limited to 'src/garage/repair/offline.rs')
-rw-r--r-- | src/garage/repair/offline.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/garage/repair/offline.rs b/src/garage/repair/offline.rs index ef56cc5c..7760a8bd 100644 --- a/src/garage/repair/offline.rs +++ b/src/garage/repair/offline.rs @@ -29,14 +29,12 @@ pub async fn offline_repair(config_file: PathBuf, opt: OfflineRepairOpt) -> Resu info!("Launching repair operation..."); match opt.what { + #[cfg(feature = "k2v")] OfflineRepairWhat::K2VItemCounters => { - #[cfg(feature = "k2v")] garage .k2v .counter_table .offline_recount_all(&garage.k2v.item_table)?; - #[cfg(not(feature = "k2v"))] - error!("K2V not enabled in this build."); } OfflineRepairWhat::ObjectCounters => { garage |