diff options
| author | Jean-Sébastien Pédron <jean-sebastien@rabbitmq.com> | 2019-01-25 11:13:01 +0100 |
|---|---|---|
| committer | Jean-Sébastien Pédron <jean-sebastien@rabbitmq.com> | 2019-02-01 11:23:15 +0100 |
| commit | b0d54da7e5ca68456fa9e2d60831f13e454911c1 (patch) | |
| tree | df2b5ca3b5ab6c1aed9825d9c5b4ba7ad47fb6ec | |
| parent | 422687be422d0bed9a53da156dd74b5da93db8ad (diff) | |
| download | rabbitmq-server-git-b0d54da7e5ca68456fa9e2d60831f13e454911c1.tar.gz | |
rabbit_plugins: Use `rabbit_misc:strict_version_minor_equivalent()` to check compatibility
That new function has the behavior that `version_minor_equivalent()` had
before: it considers 3.7.x and 3.8.x as incompatible. This is useful for
plugins because the feature flags subsystem only applies to inter-node
compatibility, not plugins.
Therefore a plugin marked as compatible with 3.7.x should not be
considered as compatible with 3.8.x.
[#159298729]
| -rw-r--r-- | src/rabbit_plugins.erl | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rabbit_plugins.erl b/src/rabbit_plugins.erl index 2d8ca07b28..69139b7b1a 100644 --- a/src/rabbit_plugins.erl +++ b/src/rabbit_plugins.erl @@ -433,7 +433,8 @@ is_version_supported(VersionFull, ExpectedVersions) -> %% therefore preview part should be removed Version = remove_version_preview_part(VersionFull), case lists:any(fun(ExpectedVersion) -> - rabbit_misc:version_minor_equivalent(ExpectedVersion, Version) + rabbit_misc:strict_version_minor_equivalent(ExpectedVersion, + Version) andalso rabbit_misc:version_compare(ExpectedVersion, Version, lte) end, |
