mirror of
https://github.com/dragonflydb/dragonfly.git
synced 2025-05-11 18:35:46 +02:00
When hset is loaded from rdb, if a ttl is specified by the user, the code recreates a string_view on top of the same memory location, tset_blob_, that was used for val earlier. This causes the val string view to point to the same value now as TTL has. For example if the val string view was 'x' earlier (points to tset_blob_, size 1), and ttl is 7777777, val now becomes '7'. To fix this val is now given it's own string. TTL is kept as string view as the pointer is not reused anywhere in the following loop. Signed-off-by: Abhijat Malviya <abhijat@dragonflydb.io> |
||
---|---|---|
.. | ||
core | ||
facade | ||
huff | ||
redis | ||
server | ||
.gitignore | ||
CMakeLists.txt | ||
GetGitRevisionDescription.cmake | ||
GetGitRevisionDescription.cmake.in |