diff options
author | Alex <alex@adnab.me> | 2024-08-25 10:00:40 +0000 |
---|---|---|
committer | Alex <alex@adnab.me> | 2024-08-25 10:00:40 +0000 |
commit | 3dda1ee4f6ab85d668aaf810667e611832fccc0c (patch) | |
tree | 8b3754a254a1bcd5a3f340141a4372a24a19af25 | |
parent | 8d62616ec057c8a9e32e9ae42ca637369ee403e3 (diff) | |
parent | aa7ce9e97c587b086d2ba23cb055cc6bb17d51bf (diff) | |
download | garage-3dda1ee4f6ab85d668aaf810667e611832fccc0c.tar.gz garage-3dda1ee4f6ab85d668aaf810667e611832fccc0c.zip |
Merge pull request 'fix build when lmdb feature is disabled (fix #800)' (#863) from fix-800 into main
Reviewed-on: https://git.deuxfleurs.fr/Deuxfleurs/garage/pulls/863
-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() }; |