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

feat(rdb save): serializer flush to sink only on flush call #519

Merged
merged 3 commits into from
Nov 30, 2022

Conversation

adiholden
Copy link
Collaborator

Signed-off-by: adi_holden adi@dragonflydb.io

Signed-off-by: adi_holden <adi@dragonflydb.io>
@adiholden adiholden requested a review from romange November 29, 2022 15:33
src/server/snapshot.cc Outdated Show resolved Hide resolved
@dranikpg
Copy link
Contributor

Oh damn, I've just refactored the whole snapshot 😆

@romange
Copy link
Collaborator

romange commented Nov 29, 2022 via email

Signed-off-by: adi_holden <adi@dragonflydb.io>
@adiholden adiholden requested a review from romange November 30, 2022 08:23
mem_buf_.ConsumeInput(sz);

return error_code{};
}

size_t RdbSerializer::SerializedLen() {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

make it const

Signed-off-by: adi_holden <adi@dragonflydb.io>
Copy link
Collaborator

@romange romange left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@adiholden adiholden merged commit 574afe0 into main Nov 30, 2022
@romange romange deleted the serializer_use_string branch December 27, 2022 16:24
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

Successfully merging this pull request may close these issues.

3 participants