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

bug(list_family): fix BPopPusher command replication #899

Merged
merged 2 commits into from
Mar 2, 2023

Conversation

adiholden
Copy link
Collaborator

@adiholden adiholden commented Mar 2, 2023

because ArgSlice (absl::span) is not the owner memory when constructing with initializer list we must make sure that the span is passed directly to function.
i.e
arg = ArgSlice {"1"}
foo(arg) // arg is dangling pointer
we should use
foo(ArgSlice {"1"})

@adiholden adiholden requested a review from dranikpg March 2, 2023 09:51
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.

what's the problem here?

@adiholden adiholden requested a review from romange March 2, 2023 10:19
Signed-off-by: adi_holden <adi@dragonflydb.io>
@adiholden adiholden force-pushed the fix_replicate_command branch from d9d2911 to 2a1f332 Compare March 2, 2023 11:58
@adiholden
Copy link
Collaborator Author

@romange please review

@dranikpg
Copy link
Contributor

dranikpg commented Mar 2, 2023

@dranikpg
Copy link
Contributor

dranikpg commented Mar 2, 2023

I grepped ArgSlice.*?\{.*?\}; over the code and it seems like this is the only place

@adiholden adiholden merged commit 7ae316a into main Mar 2, 2023
@romange romange deleted the fix_replicate_command branch March 5, 2023 07:13
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