Yanqi Lv 2342db3927 fix wrong data type conversion in zrangeResultBeginStore (#13148)
In `beginResultEmission`, -1 means the result length is not known in
advance. But after #12185, if we pass -1 to `zrangeResultBeginStore`, it
will convert to SIZE_MAX in `zsetTypeCreate` and try to `dictExpand`.
Although `dictExpand` won't succeed because the size overflows, I think
we'd better to avoid this wrong conversion.

This bug can be triggered when the source of `zrangestore` doesn't exist
or we use `zrangestore` command with `byscore` or `bylex`.
The impact is that dst keys will be converted to use skiplist instead of
listpack.

Signed-off-by: Ping Xie <pingxie@google.com>
2024-07-02 00:24:19 -07:00
..
2022-11-23 17:39:08 +02:00
2024-04-07 17:32:10 -07:00
2023-10-18 10:44:10 +03:00
2020-04-24 17:11:21 -07:00
2022-11-09 19:50:07 +02:00
2022-11-09 19:50:07 +02:00
2022-03-09 13:58:23 +02:00
2020-05-05 23:35:08 -04:00
2022-04-17 15:43:22 +03:00
2022-10-02 13:56:45 +03:00
2024-07-02 00:24:19 -07:00
2022-08-23 12:37:56 +03:00
2023-02-12 09:23:29 +02:00
2023-02-12 09:23:29 +02:00
2021-07-10 10:04:54 -05:00
2022-07-18 10:56:26 +03:00
2023-01-22 16:32:20 +02:00
2023-06-22 08:10:42 -07:00
2023-06-22 08:10:42 -07:00
2023-02-12 09:23:29 +02:00