]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
PrimaryLogPG::try_lock_for_read: give up if missing 14616/head
authorSamuel Just <sjust@redhat.com>
Wed, 18 Jan 2017 18:24:13 +0000 (10:24 -0800)
committerNathan Cutler <ncutler@suse.com>
Mon, 3 Jul 2017 10:30:53 +0000 (12:30 +0200)
commitd186951730d947881fea0e638a6e112718820ae0
tree483e21332cc9228d43a5c6388f63990c05ffcbb1
parent30ff11c84fd6d53c6439aaed8f7742b98a5b6218
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/PrimaryLogPG.h