Skip to content

Conversation

@dranikpg
Copy link
Contributor

@dranikpg dranikpg commented Oct 10, 2025

Adds mutable functions to listpack wrapper

@dranikpg dranikpg force-pushed the mutable-listpack branch 2 times, most recently from 28f6c20 to 486c619 Compare October 13, 2025 18:07
@dranikpg dranikpg marked this pull request as ready for review October 17, 2025 16:12
@dranikpg dranikpg requested a review from BorysTheDev October 18, 2025 08:12
mutable IntBuf intbuf_;
uint8_t* lp_; // the listpack itself
mutable IntBuf intbuf_; // buffer for integers decoded to strings
bool dirty_ = false; // whether lp_ was updated, but never retrieved with GetPointer
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't see why do we need it

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Just to catch bugs because the interface is kinda bad 🙂

@dranikpg dranikpg merged commit 54ea59c into dragonflydb:main Oct 20, 2025
10 checks passed
@dranikpg dranikpg deleted the mutable-listpack branch October 21, 2025 16:15
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.

2 participants