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

Implement bulk delete #49

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open

Implement bulk delete #49

wants to merge 8 commits into from

Conversation

adnan-alhomssi
Copy link
Member

No description provided.

Copy link
Member

@andrebsguedes andrebsguedes left a comment

Choose a reason for hiding this comment

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

LGTM! Just some minor considerations

(Will approve once we have merged and released object_store_ffi and updated the version here)

c_paths = [Base.cconvert(Cstring, path) for path in paths]
# Create an array of pointers to the Cstrings
paths_array = [pointer(c_path) for c_path in c_paths]
result = GC.@preserve paths c_paths paths_array config response event try
Copy link
Member

Choose a reason for hiding this comment

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

Quite a lot of GC.@preserve, I think the c_paths is redundant because Base.cconvert(Cstring, String) is a noop IIRC, but it is better to be safe and leave it as you have here.

Copy link
Member

Choose a reason for hiding this comment

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

I did some testing and Julia appears to be smart enough to convert Vector{String} to Ptr{Ptr{Cchar}} on the @ccall directly. But I leave it for you to decide whether you trust it or not 😉

Copy link
Member Author

Choose a reason for hiding this comment

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

changed it to pass Vector{String} directly

@adnan-alhomssi adnan-alhomssi marked this pull request as ready for review February 11, 2025 21:26
Copy link
Member

@andrebsguedes andrebsguedes left a comment

Choose a reason for hiding this comment

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

LGTM!

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