Skip to content
Snippets Groups Projects
Commit ee06f892 authored by Mergen Imeev's avatar Mergen Imeev Committed by Vladimir Davydov
Browse files

box: fix format of _vfunc

The _vfunc system space is the sysview for the _func system space.
However, the _vfunc format is different from the _func format. This
patch makes the _vfunc format the same as the _func format.

Closes #7822

NO_DOC=bugfix

(cherry picked from commit 707da125)
parent 8aa13474
No related branches found
No related tags found
No related merge requests found
## bugfix/box
* Format of _vfunc is now the same as the format of _func (gh-7822).
File suppressed by a .gitattributes entry or the file's encoding is unsupported.
......@@ -1247,8 +1247,14 @@ local function revoke_execute_access_to_lua_function_from_role_public()
end
end
local function make_vfunc_same_format_as_func()
log.info("Make format of _vfunc the same as the format of _func")
box.space._vfunc:format(box.space._func:format())
end
local function upgrade_to_2_10_4()
revoke_execute_access_to_lua_function_from_role_public()
make_vfunc_same_format_as_func()
end
--------------------------------------------------------------------------------
......
......@@ -113,3 +113,10 @@ g.test_msgpack_object_args = function()
t.assert(g.server:eval('return box.func.check_persistent.takes_raw_args'))
t.assert(g.server:eval('return box.func.decode_persistent.takes_raw_args'))
end
g.test_gh_7822_vfunc_format = function()
g.server:exec(function()
local t = require('luatest')
t.assert_equals(box.space._vfunc:format(), box.space._func:format())
end)
end
......@@ -63,7 +63,14 @@ box.space._space:select{}
'type': 'string'}, {'name': 'last_altered', 'type': 'string'}]]
- [297, 1, '_vfunc', 'sysview', 0, {}, [{'name': 'id', 'type': 'unsigned'}, {'name': 'owner',
'type': 'unsigned'}, {'name': 'name', 'type': 'string'}, {'name': 'setuid',
'type': 'unsigned'}]]
'type': 'unsigned'}, {'name': 'language', 'type': 'string'}, {'name': 'body',
'type': 'string'}, {'name': 'routine_type', 'type': 'string'}, {'name': 'param_list',
'type': 'array'}, {'name': 'returns', 'type': 'string'}, {'name': 'aggregate',
'type': 'string'}, {'name': 'sql_data_access', 'type': 'string'}, {'name': 'is_deterministic',
'type': 'boolean'}, {'name': 'is_sandboxed', 'type': 'boolean'}, {'name': 'is_null_call',
'type': 'boolean'}, {'name': 'exports', 'type': 'array'}, {'name': 'opts',
'type': 'map'}, {'name': 'comment', 'type': 'string'}, {'name': 'created',
'type': 'string'}, {'name': 'last_altered', 'type': 'string'}]]
- [304, 1, '_user', 'memtx', 0, {}, [{'name': 'id', 'type': 'unsigned'}, {'name': 'owner',
'type': 'unsigned'}, {'name': 'name', 'type': 'string'}, {'name': 'type',
'type': 'string'}, {'name': 'auth', 'type': 'map'}]]
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment