mirror of https://github.com/ceph/go-ceph
rados: add AssertExists WriteOp function
Signed-off-by: John Mulligan <jmulligan@redhat.com>
This commit is contained in:
parent
570738b24c
commit
e4e1257768
|
@ -116,3 +116,11 @@ func (w *WriteOp) RmOmapKeys(keys []string) {
|
|||
func (w *WriteOp) CleanOmap() {
|
||||
C.rados_write_op_omap_clear(w.op)
|
||||
}
|
||||
|
||||
// AssertExists assures the object targeted by the write op exists.
|
||||
//
|
||||
// Implements:
|
||||
// void rados_write_op_assert_exists(rados_write_op_t write_op);
|
||||
func (w *WriteOp) AssertExists() {
|
||||
C.rados_write_op_assert_exists(w.op)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue