rados: add AssertExists function to ReadOp

Signed-off-by: John Mulligan <jmulligan@redhat.com>
This commit is contained in:
John Mulligan 2020-06-26 13:23:15 -04:00 committed by mergify[bot]
parent c8d8d8c364
commit 315188eaef
1 changed files with 8 additions and 0 deletions

View File

@ -56,6 +56,14 @@ func (r *ReadOp) operateCompat(ioctx *IOContext, oid string) error {
}
}
// AssertExists assures the object targeted by the read op exists.
//
// Implements:
// void rados_read_op_assert_exists(rados_read_op_t read_op);
func (r *ReadOp) AssertExists() {
C.rados_read_op_assert_exists(r.op)
}
// GetOmapValues is used to iterate over a set, or sub-set, of omap keys
// as part of a read operation. An GetOmapStep is returned from this
// function. The GetOmapStep may be used to iterate over the key-value