mirror of
https://github.com/redis/redis.git
synced 2026-06-08 16:24:26 -04:00
Fix wrong version calculation on Redis Function tests. (#10217)
This commit is contained in:
parent
d0bc4fff18
commit
6ca97da0fc
1 changed files with 2 additions and 2 deletions
|
|
@ -1092,8 +1092,8 @@ start_server {tags {"scripting"}} {
|
|||
|
||||
redis.register_function{function_name='get_version_v1', callback=function()
|
||||
return string.format('%s.%s.%s',
|
||||
bit.band(bit.rshift(version, 4), 0x000000ff),
|
||||
bit.band(bit.rshift(version, 2), 0x000000ff),
|
||||
bit.band(bit.rshift(version, 16), 0x000000ff),
|
||||
bit.band(bit.rshift(version, 8), 0x000000ff),
|
||||
bit.band(version, 0x000000ff))
|
||||
end}
|
||||
redis.register_function{function_name='get_version_v2', callback=function() return redis.REDIS_VERSION end}
|
||||
|
|
|
|||
Loading…
Reference in a new issue