]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rados: Add API to disable version querying with reads in librados 66162/head
authorAlex Ainscow <aainscow@uk.ibm.com>
Fri, 7 Nov 2025 10:44:56 +0000 (10:44 +0000)
committerAlex Ainscow <aainscow@uk.ibm.com>
Wed, 10 Dec 2025 14:41:12 +0000 (14:41 +0000)
commit1fb6cb24f3f85f2ea916e51abf126aed212ebb5b
treedaa7bfae2af79f12fddfedea1be1420a730a369a
parent0df8f65e1b526c269854ac45a7be57bb35898221
rados: Add API to disable version querying with reads in librados

librados will always request a "user version". Until EC direct reads are implemented
this is a cheap operation and so librados always requests the user version, even if
the client does not need it.

With EC direct reads, requesting the user version requires an extra op to the primary
in some scenarios. The non-primary OSDs do not contain an up to date user
version.

NEORADOS already allows for such optimisations, due to a how the API is organised.

librados is not heavily used by ceph-maintained clients, but this API will still be
useful for testing of EC direct reads, since the test clients will use librados, due
to it simpler nature and performance not being critical in the tests.

Signed-off-by: Alex Ainscow <aainscow@uk.ibm.com>
src/include/rados/librados.hpp
src/librados/IoCtxImpl.cc
src/librados/IoCtxImpl.h
src/librados/librados_cxx.cc
src/test/librados/misc_cxx.cc