Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
6ca97da0
Unverified
Commit
6ca97da0
authored
Jan 31, 2022
by
Meir Shpilraien (Spielrein)
Committed by
GitHub
Jan 31, 2022
Browse files
Fix wrong version calculation on Redis Function tests. (#10217)
parent
d0bc4fff
Changes
1
Hide whitespace changes
Inline
Side-by-side
tests/unit/functions.tcl
View file @
6ca97da0
...
@@ -1092,8 +1092,8 @@ start_server {tags {"scripting"}} {
...
@@ -1092,8 +1092,8 @@ start_server {tags {"scripting"}} {
redis.register_function
{
function_name='get_version_v1', callback=function
()
redis.register_function
{
function_name='get_version_v1', callback=function
()
return string.format
(
'%s.%s.%s',
return string.format
(
'%s.%s.%s',
bit.band
(
bit.rshift
(
version,
4
)
, 0x000000ff
)
,
bit.band
(
bit.rshift
(
version,
16
)
, 0x000000ff
)
,
bit.band
(
bit.rshift
(
version,
2
)
, 0x000000ff
)
,
bit.band
(
bit.rshift
(
version,
8
)
, 0x000000ff
)
,
bit.band
(
version, 0x000000ff
))
bit.band
(
version, 0x000000ff
))
end
}
end
}
redis.register_function
{
function_name='get_version_v2', callback=function
()
return redis.REDIS_VERSION end
}
redis.register_function
{
function_name='get_version_v2', callback=function
()
return redis.REDIS_VERSION end
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment