Unverified Commit 6ca97da0 authored by Meir Shpilraien (Spielrein)'s avatar Meir Shpilraien (Spielrein) Committed by GitHub
Browse files

Fix wrong version calculation on Redis Function tests. (#10217)

parent d0bc4fff
...@@ -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}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment