Skip to content

Commit

Permalink
Throw an error when using Tarantool 3
Browse files Browse the repository at this point in the history
  • Loading branch information
yngvar-antonsson committed Jul 26, 2023
1 parent 97a4629 commit c096c60
Show file tree
Hide file tree
Showing 2 changed files with 11 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
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

- Throw an error when using Tarantool 3.

-------------------------------------------------------------------------------
[2.8.1] - 2023-07-20
-------------------------------------------------------------------------------
Expand Down
5 changes: 5 additions & 0 deletions cartridge.lua
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ local http = require('http.server')
local fiber = require('fiber')
local socket = require('socket')
local json = require('json')
local tarantool_version = require('tarantool').version

local rpc = require('cartridge.rpc')
local auth = require('cartridge.auth')
Expand Down Expand Up @@ -316,6 +317,10 @@ local function cfg(opts, box_opts)
disable_errstack = '?boolean',
}, '?table')

if tarantool_version:sub(1, 2) == '3.' then
return nil, CartridgeCfgError:new("Unsupported Tarantool version " .. tarantool_version)
end

if opts.webui_blacklist ~= nil then
local i = 0
for _, _ in pairs(opts.webui_blacklist) do
Expand Down

0 comments on commit c096c60

Please sign in to comment.