]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
PrimaryLogPG::try_lock_for_read: give up if missing 13087/head
authorSamuel Just <sjust@redhat.com>
Wed, 18 Jan 2017 18:24:13 +0000 (10:24 -0800)
committerSamuel Just <sjust@redhat.com>
Wed, 18 Jan 2017 18:32:16 +0000 (10:32 -0800)
commit3833440adea6f8bcb0093603c3a9d16360ed57ec
tree7b4faf373f4a48d3f5bf973755d2334393967f95
parent68defc2b0561414711d4dd0a76bc5d0f46f8a3f8
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>
src/osd/PrimaryLogPG.h