ceph / ceph-rust

Rust-lang interface to Ceph.
Apache License 2.0
96 stars 43 forks source link

segfaults #84

Closed Ten0 closed 2 weeks ago

Ten0 commented 9 months ago

To reproduce:

=> API is unsound.

rados.get_rados_ioctx(pool_name) should either have a lifetime bound on the Rados it takes as parameter (which is bothersome for some use-cases) or take self: &Arc<Rados> and store an Arc<Rados> inside (which considering how heavy ioctx is anyway wouldn't have a significant cost, so is probably the better option).