2022-01-27 15:19:20 +00:00
|
|
|
//go:build ceph_preview
|
|
|
|
// +build ceph_preview
|
|
|
|
|
|
|
|
package rados
|
|
|
|
|
|
|
|
// #cgo LDFLAGS: -lrados
|
|
|
|
// #include <rados/librados.h>
|
|
|
|
// #include <stdlib.h>
|
|
|
|
//
|
|
|
|
import "C"
|
|
|
|
|
2022-02-08 14:47:39 +00:00
|
|
|
// AssertVersion ensures that the object exists and that its internal version
|
|
|
|
// number is equal to "ver" before reading. "ver" should be a version number
|
|
|
|
// previously obtained with IOContext.GetLastVersion().
|
2022-01-27 15:19:20 +00:00
|
|
|
// PREVIEW
|
|
|
|
//
|
|
|
|
// Implements:
|
|
|
|
// void rados_read_op_assert_version(rados_read_op_t read_op,
|
|
|
|
// uint64_t ver)
|
|
|
|
func (r *ReadOp) AssertVersion(ver uint64) {
|
|
|
|
C.rados_read_op_assert_version(r.op, C.uint64_t(ver))
|
|
|
|
}
|