Skip to content

Commit

Permalink
update xrootd (#229)
Browse files Browse the repository at this point in the history
* update xrootd
  • Loading branch information
Moelf authored Mar 16, 2023
1 parent 146fe24 commit d8a5013
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ StaticArrays = "^0.12.0, ^1"
StructArrays = "0.6"
Tables = "^1.0.0"
julia = "^1.6"
xrootdgo_jll = "^0.31.1"
xrootdgo_jll = "^0.32.1"

[extras]
Arrow = "69666777-d1a9-59fb-9406-91d4454c9d45"
Expand Down
3 changes: 3 additions & 0 deletions src/streamsource.jl
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,9 @@ end

function XRDStream(urlbase::AbstractString, filepath::AbstractString, username::AbstractString)
file_id = @ccall xrootdgo.Open(urlbase::Cstring, filepath::Cstring, username::Cstring)::Cstring
if unsafe_string(file_id) == "error"
error("xrootd Go library errored.")
end
# file_id = @threadcall((:Open, xrootdgo), Cstring, (Cstring, Cstring, Cstring), urlbase, filepath, username)
size = @ccall xrootdgo.Size(file_id::Cstring)::Int
XRDStream(file_id, 0, size)
Expand Down

0 comments on commit d8a5013

Please sign in to comment.