server: push: fix supported api version check

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>
 [ TL: re-sort line to go from bigger to smaller ]
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Christian Ebner 2024-11-28 12:56:57 +01:00 committed by Thomas Lamprecht
parent 38d961f9e4
commit b711ccf0ad

View File

@ -132,7 +132,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 >= 3)
|| (api_version.major == 3 && api_version.minor == 2 && api_version.release >= 11);
let target = PushTarget {
remote,