rados: Make IOContext.SetAllocationHint stable

Signed-off-by: Anoop C S <anoopcs@cryptolab.net>
This commit is contained in:
Anoop C S 2022-12-05 17:25:28 +05:30 committed by mergify[bot]
parent 1c78570f03
commit efa832cdd0
3 changed files with 5 additions and 9 deletions

View File

@ -1012,15 +1012,15 @@
{
"name": "IOContext.SetLocator",
"comment": "SetLocator sets the key for mapping objects to pgs within an io context.\nUntil a different locator key is set, all objects in this io context will be placed in the same pg.\nTo reset the locator, an empty string must be set.\n\nImplements:\n void rados_ioctx_locator_set_key(rados_ioctx_t io, const char *key);\n"
}
],
"preview_api": [
},
{
"name": "IOContext.SetAllocationHint",
"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 int rados_set_alloc_hint2(rados_ioctx_t io,\n const char *o,\n uint64_t expected_object_size,\n uint64_t expected_write_size,\n uint32_t flags);\n",
"added_in_version": "v0.17.0",
"expected_stable_version": "v0.19.0"
},
"became_stable_version": "v0.19.0"
}
],
"preview_api": [
{
"name": "WriteOp.SetAllocationHint",
"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",

View File

@ -16,7 +16,6 @@ No Preview/Deprecated APIs found. All APIs are considered stable.
Name | Added in Version | Expected Stable Version |
---- | ---------------- | ----------------------- |
IOContext.SetAllocationHint | v0.17.0 | v0.19.0 |
WriteOp.SetAllocationHint | v0.17.0 | v0.19.0 |
IOContext.Alignment | v0.17.0 | v0.19.0 |
IOContext.RequiresAlignment | v0.17.0 | v0.19.0 |

View File

@ -1,6 +1,3 @@
//go:build ceph_preview
// +build ceph_preview
package rados
// #cgo LDFLAGS: -lrados