ceph / ceph-rust

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

Make WriteOperation usable #87

Open Ten0 opened 8 months ago

Ten0 commented 8 months ago

WriteOperation (atomic write operations) is currently not usable because there's no way to construct it.

In addition, the method rados_commit_write_operations takes &mut WriteOperation, but re-using a WriteOperation that has succeeded causes rados to fail an assert and abort the program.

This commit makes WriteOperation usable.