Skip to content

Commit ed2ad16

Browse files
Disable invalid format check in Tarantool >= 2.10.4
1 parent f96e584 commit ed2ad16

File tree

3 files changed

+21
-0
lines changed

3 files changed

+21
-0
lines changed

CHANGELOG.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,12 @@ Added
3232

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

35+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
36+
Changed
37+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
38+
39+
- Don't perform invalid format check in Tarantool 2.10.4 and above.
40+
3541
-------------------------------------------------------------------------------
3642
[2.8.1] - 2023-07-20
3743
-------------------------------------------------------------------------------

cartridge/invalid-format.lua

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,20 @@ local log = require('log')
22
local fiber = require('fiber')
33
local vars = require('cartridge.vars').new('cartridge.invalid-format')
44

5+
local utils = require('cartridge.utils')
6+
7+
8+
-- In Tarantool >= 2.10.4 invalid format leads to an error,
9+
-- so we don't need to perform a check
10+
if utils.version_is_at_least(2, 10, 4) then
11+
return {
12+
start_check = function() end,
13+
end_check = function() end,
14+
spaces_list_str = function() return '' end,
15+
run_check = function() return {} end,
16+
}
17+
end
18+
519
--- Set of illegal params.
620
--
721
-- @table illegal_types

cartridge/utils.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -564,4 +564,5 @@ return {
564564
appoint_leaders_check = appoint_leaders_check,
565565

566566
feature = feature,
567+
version_is_at_least = version_is_at_least,
567568
}

0 commit comments

Comments
 (0)