ceph-rust
ceph-rust copied to clipboard
Make WriteOperation usable
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.