Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

valueSize is from the serialized string length? #1

Open
lehy786 opened this issue Dec 4, 2021 · 1 comment
Open

valueSize is from the serialized string length? #1

lehy786 opened this issue Dec 4, 2021 · 1 comment

Comments

@lehy786
Copy link

lehy786 commented Dec 4, 2021

if data structure saved into rdb file is compressed by lzf algorithm, what we get a valueSize is not the actual value size in memory, it's the compressed serial string length. am I right?

@erpeng
Copy link
Owner

erpeng commented Dec 7, 2021

if data structure saved into rdb file is compressed by lzf algorithm, what we get a valueSize is not the actual value size in memory, it's the compressed serial string length. am I right?

Year,you're right.readRdbIntLength and readRdbLength handle this.Actually we can get the original length,Maybe we should use original length.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants