-
Notifications
You must be signed in to change notification settings - Fork 4k
ARROW-3912: [Plasma][GLib] Add support for creating and referring objects #3056
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
Conversation
|
|
||
| typedef struct GPlasmaClientPrivate_ { | ||
| std::shared_ptr<plasma::PlasmaClient> client; | ||
| plasma::PlasmaClient *client; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is that because this change prevent a memory leak?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No.
shared_ptr is just not needed here. We don't need to share a plasma::PlasmaClient created by plasma_client_new().
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see.
c_glib/plasma-glib/client.cpp
Outdated
| auto plasma_data = plasma_object_buffer.data; | ||
| auto plasma_metadata = plasma_object_buffer.metadata; | ||
| GArrowBuffer *data; | ||
| GArrowBuffer *metadata; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to silence the warning?
https://travis-ci.org/apache/arrow/jobs/461631864#L3955
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes.
I forgot return NULL after g_set_error().
c_glib/plasma-glib/object.cpp
Outdated
| auto status = plasma_client->Seal(id_priv->id); | ||
| auto success = garrow_error_check(error, status, context); | ||
| if (success) { | ||
| plasma_client->Release(id_priv->id); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we need to receive status to silence the warning?
https://travis-ci.org/apache/arrow/jobs/461631864#L3940
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes.
I've added it.
shiro615
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
I'll merge this.
No description provided.