redict/tests/assets
sundb 02fd76b97c
Replace all usage of ziplist with listpack for t_hash (#8887)
Part one of implementing #8702 (taking hashes first before other types)

## Description of the feature
1. Change ziplist encoded hash objects to listpack encoding.
2. Convert existing ziplists on RDB loading time. an O(n) operation.

## Rdb format changes
1. Add RDB_TYPE_HASH_LISTPACK rdb type.
2. Bump RDB_VERSION to 10

## Interface changes
1. New `hash-max-listpack-entries` config is an alias for `hash-max-ziplist-entries` (same with `hash-max-listpack-value`)
2. OBJECT ENCODING will return `listpack` instead of `ziplist`

## Listpack improvements:
1. Support direct insert, replace integer element (rather than convert back and forth from string)
3. Add more listpack capabilities to match the ziplist ones (like `lpFind`, `lpRandomPairs` and such)
4. Optimize element length fetching, avoid multiple calculations
5. Use inline to avoid function call overhead.

## Tests
1. Add a new test to the RDB load time conversion
2. Adding the listpack unit tests. (based on the one in ziplist.c)
3. Add a few "corrupt payload: fuzzer findings" tests, and slightly modify existing ones.

Co-authored-by: Oran Agra <oran@redislabs.com>
2021-08-10 09:18:49 +03:00
..
corrupt_empty_keys.rdb Sanitize dump payload: handle remaining empty key when RDB loading and restore command (#9349) 2021-08-09 17:13:46 +03:00
corrupt_ziplist.rdb Sanitize dump payload: ziplist, listpack, zipmap, intset, stream 2020-12-06 14:54:34 +02:00
default.conf Fix test "server is up" detection after logging changes. 2016-12-19 16:49:58 +01:00
encodings.rdb RDB load of different encodings test added. 2012-03-23 20:24:30 +01:00
hash-ziplist.rdb Replace all usage of ziplist with listpack for t_hash (#8887) 2021-08-10 09:18:49 +03:00
hash-zipmap.rdb Test that zipmap from RDB is correctly converted 2012-01-25 13:28:11 -08:00
minimal.conf Fix default/explicit "save" parameter loading. (#7767) 2020-09-09 15:12:57 +03:00
nodefaultuser.acl ACL channels permission handling for save/load scenario. (#8794) 2021-04-19 13:27:44 +03:00
user.acl Fix "default" and overwritten / reset users will not have pubsub channels permissions by default. (#8723) 2021-04-05 23:13:20 +03:00