コード例 #1
0
ファイル: object-list.go プロジェクト: objStorage/grados
// Position returns the hash of the position rounded to the nearest PG.
func (ol *ObjectList) Position() uint32 {
	ret := C.rados_objects_list_get_pg_hash_position(ol.listContext)
	position := uint32(ret)
	return position
}
コード例 #2
0
ファイル: ioctx.go プロジェクト: omnicube/go-ceph
// Returns a token marking the current position of the iterator. To be used in combination with Iter.Seek()
func (iter *Iter) Token() IterToken {
	return IterToken(C.rados_objects_list_get_pg_hash_position(iter.ctx))
}