rados: add AssertExists WriteOp function

Signed-off-by: John Mulligan <jmulligan@redhat.com>
This commit is contained in:
John Mulligan 2020-06-23 12:38:02 -04:00 committed by mergify[bot]
parent 570738b24c
commit e4e1257768
1 changed files with 8 additions and 0 deletions

View File

@ -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)
}