From: Thomas Lamprecht <t.lamprecht@proxmox.com>
To: Proxmox Backup Server development discussion
<pbs-devel@lists.proxmox.com>,
Hannes Laimer <h.laimer@proxmox.com>
Subject: Re: [pbs-devel] [PATCH v1 proxmox-backup] remove not used argument config from open with path
Date: Tue, 20 Oct 2020 10:35:47 +0200 [thread overview]
Message-ID: <b29d56bc-e92d-f43e-f870-5666871f8017@proxmox.com> (raw)
In-Reply-To: <20201020070015.29366-1-h.laimer@proxmox.com>
On 20.10.20 09:00, Hannes Laimer wrote:
> Signed-off-by: Hannes Laimer <h.laimer@proxmox.com>
> ---
>
> Building failed since the import of DataStoreConfig was missing,
> furthermore config was not used in the function.
>
> src/backup/datastore.rs | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/src/backup/datastore.rs b/src/backup/datastore.rs
> index a856e2f4..47531bbf 100644
> --- a/src/backup/datastore.rs
> +++ b/src/backup/datastore.rs
> @@ -57,7 +57,7 @@ impl DataStore {
> }
> }
>
> - let datastore = DataStore::open_with_path(name, &path, config)?;
> + let datastore = DataStore::open_with_path(name, &path)?;
>
> let datastore = Arc::new(datastore);
> map.insert(name.to_string(), datastore.clone());
> @@ -65,7 +65,7 @@ impl DataStore {
> Ok(datastore)
> }
>
> - fn open_with_path(store_name: &str, path: &Path, config: DataStoreConfig) -> Result<Self, Error> {
> + fn open_with_path(store_name: &str, path: &Path) -> Result<Self, Error> {
> let chunk_store = ChunkStore::open(store_name, path)?;
>
> let gc_status = GarbageCollectionStatus::default();
>
looks actually OK and thanks for catching, but it seems Fabian got to it
earlier, and pushed out a fix:
https://git.proxmox.com/?p=proxmox-backup.git;a=commitdiff;h=115d927c15f8c70442de7cc3a43e99587b499c26
prev parent reply other threads:[~2020-10-20 8:35 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-10-20 7:00 Hannes Laimer
2020-10-20 8:35 ` Thomas Lamprecht [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=b29d56bc-e92d-f43e-f870-5666871f8017@proxmox.com \
--to=t.lamprecht@proxmox.com \
--cc=h.laimer@proxmox.com \
--cc=pbs-devel@lists.proxmox.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox