iseriser
iseriser
``` diff -u zbx_export_templates.xml{.orig,} --- zbx_export_templates.xml.orig 2022-01-30 02:19:55.000000000 +0300 +++ zbx_export_templates.xml 2022-01-30 02:22:30.000000000 +0300 @@ -1838,7 +1838,7 @@ 6666FF 0 2 - 7 + 0 Template_App_Redis redis.stat.get[total_commands_processed,{#HOST},{#PORT}] @@ -1870,7 +1870,7...
`redis-cli` returns correct result (it is easy to check, cause the value is gzip archive and unpack returns valid result with no error)
``` echo -e '*3\r\n$4\r\nHGET\r\n$9\r\nHash-Name\r\n$296\r\n/index.php/aaa-gallery/item/lamar?guid=cA6dwJ1UnvM7&tv=2017100302&type=pidget&sub=www&button_count=1&follow_count=0&pin_count=0&profile_count=0&board_count=0§ion_count=0&lang=en&via=http%3A%2F%2Fwww.example.com%2Findex.php%2Faaa-gallery%2Fitem%2Flamar&callback=PIN_1523818972861.f.callback[0]\r\n' | nc -w 1 127.0.0.1 6379 > ardb_test2_result.txt ``` returns the same correct result (byte compared and gunzipped) BTW length value of result prepended with `$`...
If I extract hget into separate test.php and run it (against ardb-server), everything works fine. So it seems the case is in the sequence. In main script this hget call...
Just imported database dump into redis-server (Debian 8 repo version). Bug is not reproducible.
Yes it does. ``` $redis->eval( "local e = redis.call('hexists', 'Hash-Name' , [[" . $url. "]])\n" . "if e == 0 then\n" . "local v = redis.call('hget', 'Old-Hash' , [[" ....
@agentzh Please, review and add this code into main branch. Almost two years have passed.
Sure in working hours.