mirror of
https://github.com/ceph/go-ceph
synced 2024-12-25 15:42:30 +00:00
863d71caa5
These apis are now stable as per the stability plan. Signed-off-by: John Mulligan <jmulligan@redhat.com>
19 lines
555 B
Go
19 lines
555 B
Go
package rados
|
|
|
|
// #cgo LDFLAGS: -lrados
|
|
// #include <rados/librados.h>
|
|
// #include <stdlib.h>
|
|
//
|
|
import "C"
|
|
|
|
// 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().
|
|
//
|
|
// 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))
|
|
}
|