Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable invalid format check in Tarantool >= 2.10.4 #2128

Merged
merged 1 commit into from
Aug 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ Added

- New Failover API function ``set_options`` to change failover internal params.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Changed
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- Don't perform invalid format check in Tarantool 2.10.4 and above.

-------------------------------------------------------------------------------
[2.8.1] - 2023-07-20
-------------------------------------------------------------------------------
Expand Down
14 changes: 14 additions & 0 deletions cartridge/invalid-format.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,20 @@ local log = require('log')
local fiber = require('fiber')
local vars = require('cartridge.vars').new('cartridge.invalid-format')

local utils = require('cartridge.utils')


-- In Tarantool >= 2.10.4 invalid format leads to an error,
-- so we don't need to perform a check
if utils.version_is_at_least(2, 10, 4) then
return {
start_check = function() end,
end_check = function() end,
spaces_list_str = function() return '' end,
run_check = function() return {} end,
}
end

--- Set of illegal params.
--
-- @table illegal_types
Expand Down
1 change: 1 addition & 0 deletions cartridge/utils.lua
Original file line number Diff line number Diff line change
Expand Up @@ -564,4 +564,5 @@ return {
appoint_leaders_check = appoint_leaders_check,

feature = feature,
version_is_at_least = version_is_at_least,
}
Loading