]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd/OSD: use OSDMap helper to determine if we are correct op target
authorSage Weil <sage@redhat.com>
Thu, 13 Nov 2014 01:11:10 +0000 (17:11 -0800)
committerSage Weil <sage@redhat.com>
Thu, 13 Nov 2014 18:38:12 +0000 (10:38 -0800)
commitccfd2414c68afda55bf4cefa2441ea6d53d87cc6
tree3d14292b172cbf72a6d6e879c839d180d7e049f8
parent963947718a954f63f351ce4034bf97380421ab7c
osd/OSD: use OSDMap helper to determine if we are correct op target

Use the new helper.  This fixes our behavior for EC pools where targetting
a different shard is not correct, while for replicated pools it may be. In
the EC case, it leaves the op hanging indefinitely in the OpTracker because
the pgid exists but as a different shard.

Fixes: #9835
Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit 9e05ba086a36ae9a04b347153b685c2b8adac2c3)
src/osd/OSD.cc