Skip to content

librbd: make rbd_read_from_replica_policy actually work#35332

Merged
dillaman merged 1 commit intoceph:masterfrom
idryomov:wip-rbd-read-flags
Jun 1, 2020
Merged

librbd: make rbd_read_from_replica_policy actually work#35332
dillaman merged 1 commit intoceph:masterfrom
idryomov:wip-rbd-read-flags

Conversation

@idryomov
Copy link
Copy Markdown
Contributor

@idryomov idryomov commented Jun 1, 2020

Commit d92be8b ("librbd: Improved support for balanced and
localized reads") introduced read_flags, but used low-level Objecter
flags (CEPH_OSD_FLAG_*). This is wrong because librbd sits on top of
librados, not Objecter. "balance" ends up being translated into
IGNORE_REDIRECT and "localize" being ignored.

Fixes: https://tracker.ceph.com/issues/45798
Signed-off-by: Ilya Dryomov idryomov@gmail.com

Commit d92be8b ("librbd: Improved support for balanced and
localized reads") introduced read_flags, but used low-level Objecter
flags (CEPH_OSD_FLAG_*).  This is wrong because librbd sits on top of
librados, not Objecter.  "balance" ends up being translated into
IGNORE_REDIRECT and "localize" being ignored.

Fixes: https://tracker.ceph.com/issues/45798
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Copy link
Copy Markdown

@dillaman dillaman left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm -- thx

@dillaman dillaman merged commit b21c313 into ceph:master Jun 1, 2020
@idryomov idryomov deleted the wip-rbd-read-flags branch June 2, 2020 10:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants