diff --git a/docs/api-status.json b/docs/api-status.json index 616f1fe..b93e39c 100644 --- a/docs/api-status.json +++ b/docs/api-status.json @@ -1024,15 +1024,15 @@ "comment": "SetAllocationHint sets allocation hint for an object. This is an advisory\noperation, it will always succeed (as if it was submitted with a\nLIBRADOS_OP_FLAG_FAILOK flag set) and is not guaranteed to do anything on\nthe backend.\n\nImplements:\n void rados_write_op_set_alloc_hint2(rados_write_op_t write_op,\n uint64_t expected_object_size,\n uint64_t expected_write_size,\n uint32_t flags);\n", "added_in_version": "v0.17.0", "became_stable_version": "v0.19.0" - } - ], - "preview_api": [ + }, { "name": "IOContext.Alignment", "comment": "Alignment returns the required stripe size in bytes for pools supporting/requiring it, or an error if unsuccessful.\nFor an EC pool, a buffer size multiple of its stripe size is required to call Append. To know if the pool requires\nalignment or not, use RequiresAlignment.\n\nImplements:\n int rados_ioctx_pool_required_alignment2(rados_ioctx_t io, uint64_t *alignment)\n", "added_in_version": "v0.17.0", - "expected_stable_version": "v0.19.0" - }, + "became_stable_version": "v0.19.0" + } + ], + "preview_api": [ { "name": "IOContext.RequiresAlignment", "comment": "RequiresAlignment returns true if the pool supports/requires alignment or an error if not successful.\nFor an EC pool, a buffer size multiple of its stripe size is required to call Append. See\nAlignment to know how to get the stripe size for pools requiring it.\n\nImplements:\n int rados_ioctx_pool_requires_alignment2(rados_ioctx_t io, int *req)\n", diff --git a/docs/api-status.md b/docs/api-status.md index 1d7d470..0149ba4 100644 --- a/docs/api-status.md +++ b/docs/api-status.md @@ -16,7 +16,6 @@ No Preview/Deprecated APIs found. All APIs are considered stable. Name | Added in Version | Expected Stable Version | ---- | ---------------- | ----------------------- | -IOContext.Alignment | v0.17.0 | v0.19.0 | IOContext.RequiresAlignment | v0.17.0 | v0.19.0 | ## Package: rbd diff --git a/rados/ioctx_pool_alignment.go b/rados/ioctx_pool_alignment.go index 7ea47df..5e47aaa 100644 --- a/rados/ioctx_pool_alignment.go +++ b/rados/ioctx_pool_alignment.go @@ -1,6 +1,3 @@ -//go:build ceph_preview -// +build ceph_preview - package rados // #cgo LDFLAGS: -lrados diff --git a/rados/ioctx_pool_alignment_test.go b/rados/ioctx_pool_alignment_test.go index 4102dc1..1b091a8 100644 --- a/rados/ioctx_pool_alignment_test.go +++ b/rados/ioctx_pool_alignment_test.go @@ -1,6 +1,3 @@ -//go:build ceph_preview -// +build ceph_preview - package rados import (