Skip to content

Commit c2b2442

Browse files
Merge pull request #43 from RelationalAI/ag-destroy-in-julia-or-rust
Make sure destroy_* fns do not panic when called from Rust threads
2 parents 6b081af + 7f6006c commit c2b2442

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

Project.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "RustyObjectStore"
22
uuid = "1b5eed3d-1f46-4baa-87f3-a4a892b23610"
3-
version = "0.8.1"
3+
version = "0.8.2"
44

55
[deps]
66
DocStringExtensions = "ffbed154-4ef7-542d-bbb7-c09d3a79fcae"
@@ -16,7 +16,7 @@ ReTestItems = "1"
1616
Sockets = "1"
1717
Test = "1"
1818
julia = "1.8"
19-
object_store_ffi_jll = "0.8.1"
19+
object_store_ffi_jll = "0.8.2"
2020

2121
[extras]
2222
CloudBase = "85eb1798-d7c4-4918-bb13-c944d38e27ed"

test/destroy_test.jl

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
@testitem "destroy_* functions do not panic" setup=[InitializeObjectStore] begin
2+
result = @ccall RustyObjectStore.rust_lib._destroy_from_julia_thread()::Cint
3+
@test result == 0
4+
result = @ccall RustyObjectStore.rust_lib._destroy_in_tokio_thread()::Cint
5+
@test result == 0
6+
end

0 commit comments

Comments
 (0)