]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
PrimaryLogPG::try_lock_for_read: give up if missing 12978/head
authorSamuel Just <sjust@redhat.com>
Wed, 18 Jan 2017 18:24:13 +0000 (10:24 -0800)
committerAlexey Sheplyakov <asheplyakov@mirantis.com>
Sun, 29 Jan 2017 04:59:58 +0000 (08:59 +0400)
commit509de4d9a2d3ba95e9f9e0375bd13239280b0e66
treee17ba2684e5713e129f1228a83f14ad8ed73c553
parentcedaecf88efd3e4807e764d023bb956f806051da
PrimaryLogPG::try_lock_for_read: give up if missing

The only users calc_*_subsets might try to read_lock an object which is
missing on the primary.  Returning false in those cases is perfectly
reasonable and avoids the problem.

Fixes: http://tracker.ceph.com/issues/18583
Signed-off-by: Samuel Just <sjust@redhat.com>
(cherry picked from commit 3833440adea6f8bcb0093603c3a9d16360ed57ec)
src/osd/ReplicatedPG.h