diff options
author | Zdenek Crha <zdenek.crha@gmail.com> | 2024-01-22 17:52:39 +0100 |
---|---|---|
committer | Zdenek Crha <zdenek.crha@gmail.com> | 2024-01-22 17:52:39 +0100 |
commit | 74e72fc99690e24de498e42d87fc04a123f712d5 (patch) | |
tree | feace259652317ab7135fb7c1e7e88af780ce2e4 /src/garage | |
parent | 4b54e053dfd1bd950e86ffad9b4155a47806d8f1 (diff) | |
download | garage-74e72fc99690e24de498e42d87fc04a123f712d5.tar.gz garage-74e72fc99690e24de498e42d87fc04a123f712d5.zip |
convert_db: cleanup naming and comments for open overrides
Diffstat (limited to 'src/garage')
-rw-r--r-- | src/garage/cli/convert_db.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/garage/cli/convert_db.rs b/src/garage/cli/convert_db.rs index d33010f4..7307d1cf 100644 --- a/src/garage/cli/convert_db.rs +++ b/src/garage/cli/convert_db.rs @@ -24,10 +24,10 @@ pub struct ConvertDbOpt { output_engine: Engine, #[structopt(flatten)] - output_open: OpenDbOpt, + db_open: OpenDbOpt, } -/// Open database config overrides +/// Overrides for database open operation #[derive(StructOpt, Debug, Default)] pub struct OpenDbOpt { #[cfg(feature = "lmdb")] @@ -35,11 +35,11 @@ pub struct OpenDbOpt { lmdb: OpenLmdbOpt, } -/// Output LMDB database config overrides +/// Overrides for LMDB database open operation #[cfg(feature = "lmdb")] #[derive(StructOpt, Debug, Default)] pub struct OpenLmdbOpt { - /// Output LMDB map size override + /// LMDB map size override /// (supported suffixes: B, KiB, MiB, GiB, TiB, PiB) #[cfg(feature = "lmdb")] #[structopt(long = "lmdb-map-size", name = "bytes", display_order = 1_000)] @@ -51,8 +51,8 @@ pub(crate) fn do_conversion(args: ConvertDbOpt) -> Result<()> { return Err(Error("input and output database engine must differ".into())); } - let input = open_db(args.input_path, args.input_engine, &args.output_open)?; - let output = open_db(args.output_path, args.output_engine, &args.output_open)?; + let input = open_db(args.input_path, args.input_engine, &args.db_open)?; + let output = open_db(args.output_path, args.output_engine, &args.db_open)?; output.import(&input)?; Ok(()) } |