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: Bitmap type DUMP/RESTORE command support #2535

Merged
merged 5 commits into from
Sep 14, 2024

Conversation

poipoiPIO
Copy link
Contributor

Changes requested by #2518

Summary

This PR extends dump and restore operations to provide support for bitmap-type objects using existing string object serialisation and deserialisation routines.

@git-hulk
Copy link
Member

@poipoiPIO thanks for your contribution.

src/storage/rdb.cc Outdated Show resolved Hide resolved
src/storage/rdb.cc Outdated Show resolved Hide resolved
Copy link

sonarcloud bot commented Sep 14, 2024

@git-hulk git-hulk merged commit 5110486 into apache:unstable Sep 14, 2024
32 checks passed
@git-hulk
Copy link
Member

@poipoiPIO Thank you.

@poipoiPIO
Copy link
Contributor Author

@poipoiPIO Thank you.

Thank you for reviewing!

redis::Bitmap bitmap_db(storage_, ns_);
Config *config = storage_->GetConfig();
uint32_t max_btos_size = static_cast<uint32_t>(config->max_bitmap_to_string_mb) * MiB;
auto s = bitmap_db.GetString(ctx, key, max_btos_size, &value);
Copy link
Member

Choose a reason for hiding this comment

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

@git-hulk would this meet the same issue like lsb to msb?

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.

4 participants