Skip to content

Commit

Permalink
Disable invalid format check in Tarantool >= 2.10.4
Browse files Browse the repository at this point in the history
  • Loading branch information
yngvar-antonsson committed Jul 26, 2023
1 parent 97a4629 commit 51269e6
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 0 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ and this project adheres to
Unreleased
-------------------------------------------------------------------------------

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
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,
}

0 comments on commit 51269e6

Please sign in to comment.