aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2024-08-25 11:42:37 +0200
committerAlex Auvolat <alex@adnab.me>2024-08-25 11:42:37 +0200
commitaa7ce9e97c587b086d2ba23cb055cc6bb17d51bf (patch)
tree8b3754a254a1bcd5a3f340141a4372a24a19af25 /src
parent8d62616ec057c8a9e32e9ae42ca637369ee403e3 (diff)
downloadgarage-fix-800.tar.gz
garage-fix-800.zip
fix build when lmdb feature is disabled (fix #800)fix-800
Diffstat (limited to 'src')
-rw-r--r--src/garage/cli/convert_db.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/garage/cli/convert_db.rs b/src/garage/cli/convert_db.rs
index 5346d55a..a40fb61f 100644
--- a/src/garage/cli/convert_db.rs
+++ b/src/garage/cli/convert_db.rs
@@ -24,6 +24,7 @@ pub struct ConvertDbOpt {
output_engine: Engine,
#[structopt(flatten)]
+ #[allow(dead_code)]
db_open: OpenDbOpt,
}
@@ -52,6 +53,7 @@ pub(crate) fn do_conversion(args: ConvertDbOpt) -> Result<()> {
}
let opt = OpenOpt {
+ #[cfg(feature = "lmdb")]
lmdb_map_size: args.db_open.lmdb.map_size.map(|x| x.as_u64() as usize),
..Default::default()
};