diff options
author | Alex Auvolat <alex@adnab.me> | 2024-08-25 11:42:37 +0200 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2024-08-25 11:42:37 +0200 |
commit | aa7ce9e97c587b086d2ba23cb055cc6bb17d51bf (patch) | |
tree | 8b3754a254a1bcd5a3f340141a4372a24a19af25 | |
parent | 8d62616ec057c8a9e32e9ae42ca637369ee403e3 (diff) | |
download | garage-aa7ce9e97c587b086d2ba23cb055cc6bb17d51bf.tar.gz garage-aa7ce9e97c587b086d2ba23cb055cc6bb17d51bf.zip |
fix build when lmdb feature is disabled (fix #800)fix-800
-rw-r--r-- | src/garage/cli/convert_db.rs | 2 |
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() }; |