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

Invoke callback with control samples #68

Closed
wants to merge 1 commit into from
Closed

Conversation

jrw972
Copy link
Contributor

@jrw972 jrw972 commented Apr 26, 2024

No description provided.

@jrw972 jrw972 self-assigned this Apr 26, 2024
@jrw972
Copy link
Contributor Author

jrw972 commented Apr 26, 2024

Based on #63.

Once a sample is in the DataWriter, it is complete and should not be treated as KeyOnly.

I'm not sure why the code was filtering on !valid_data.

@mitza-oci
Copy link
Member

Based on #63.

Once a sample is in the DataWriter, it is complete and should not be treated as KeyOnly.

Should this be DataReader?

I'm not sure why the code was filtering on !valid_data.

I think it could work either way. Treating it as a full sample may mean doing more processing than is required.

@jrw972 jrw972 closed this Apr 26, 2024
@jrw972 jrw972 deleted the control-samples branch April 26, 2024 19:20
@jrw972
Copy link
Contributor Author

jrw972 commented Apr 26, 2024

Talking about DataReaders and not DataWriters. My bad.

Filtering on !valid_data is necessary to avoid uninitialized union discriminators.
The void* passed to push_back is a T*.
The ValueDispatcher was treating it as a KeyOnly<T> which was incorrect.

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