[pbs-devel] [PATCH proxmox-backup] server: push: fix supported api version check
Christian Ebner
c.ebner at proxmox.com
Thu Nov 28 12:56:57 CET 2024
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 at 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
More information about the pbs-devel
mailing list