From: Christian Ebner <c.ebner@proxmox.com>
To: pbs-devel@lists.proxmox.com
Subject: [pbs-devel] [PATCH proxmox-backup] server: push: fix supported api version check
Date: Thu, 28 Nov 2024 12:56:57 +0100 [thread overview]
Message-ID: <20241128115657.239291-1-c.ebner@proxmox.com> (raw)
The current version check does not cover cases where the minor
version is 3, but the release version is below 11. Fix this by
extending the check accordingly.
Signed-off-by: Christian Ebner <c.ebner@proxmox.com>
---
src/server/push.rs | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/server/push.rs b/src/server/push.rs
index 53098d43b..afc4ec815 100644
--- a/src/server/push.rs
+++ b/src/server/push.rs
@@ -134,7 +134,8 @@ impl PushParameters {
}
let supports_prune_delete_stats = api_version.major > 3
- || (api_version.major == 3 && api_version.minor >= 2 && api_version.release >= 11);
+ || (api_version.major == 3 && api_version.minor == 2 && api_version.release >= 11)
+ || (api_version.major == 3 && api_version.minor >= 3);
let target = PushTarget {
remote,
--
2.39.5
_______________________________________________
pbs-devel mailing list
pbs-devel@lists.proxmox.com
https://lists.proxmox.com/cgi-bin/mailman/listinfo/pbs-devel
next reply other threads:[~2024-11-28 11:57 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-11-28 11:56 Christian Ebner [this message]
2024-11-28 11:59 ` [pbs-devel] applied: " Thomas Lamprecht
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=20241128115657.239291-1-c.ebner@proxmox.com \
--to=c.ebner@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