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

chore: cleanup of redis implementation of sets/hashmaps #2605

Merged
merged 1 commit into from
Feb 17, 2024
Merged

Conversation

romange
Copy link
Collaborator

@romange romange commented Feb 17, 2024

No description provided.

@romange romange force-pushed the CleanRedisDict branch 2 times, most recently from fe646ce to f6c7522 Compare February 17, 2024 05:28
kostasrim
kostasrim previously approved these changes Feb 17, 2024
@@ -1627,7 +1493,7 @@ bool SetFamily::ConvertToStrSet(const intset* is, size_t expected_len, robj* des
char buf[32];
int ii = 0;

if (GetFlag(FLAGS_use_set2)) {
if (true) {
Copy link
Contributor

Choose a reason for hiding this comment

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

??

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Otherwise diffs become annoying due to indentation shifts.


if (IsDenseEncoding(*set)) {
if (true) {
Copy link
Contributor

Choose a reason for hiding this comment

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

same here?

LOG(ERROR) << "OOM in dictTryExpand " << len;
ec_ = RdbError(errc::out_of_memory);
return;
}

if (use_set2) {
if (true) {
Copy link
Contributor

Choose a reason for hiding this comment

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

and in other places as well :)

Signed-off-by: Roman Gershman <roman@dragonflydb.io>
@romange romange merged commit 6aafe3d into main Feb 17, 2024
10 checks passed
@romange romange deleted the CleanRedisDict branch February 17, 2024 16:35
lsvmello pushed a commit to lsvmello/dragonfly that referenced this pull request Feb 19, 2024
…2605)

Signed-off-by: Roman Gershman <roman@dragonflydb.io>
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.

None yet

2 participants