]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd: lookup_*pg must return PGRef
authorSage Weil <sage@redhat.com>
Fri, 16 Feb 2018 21:53:43 +0000 (15:53 -0600)
committerSage Weil <sage@redhat.com>
Wed, 4 Apr 2018 13:26:55 +0000 (08:26 -0500)
commit7fb35ff96199cee579efb70fdc6132b5f5be9921
tree64f06ee692ebbe674dd94ae0cf27d15738fdfd06
parent1270b49fb5f2b46837453816e64c96f8ed6cacde
osd: lookup_*pg must return PGRef

Otherwise it is fundamentally unsafe, as the PG might get destroyed out
from under us without a reference.

Signed-off-by: Sage Weil <sage@redhat.com>
src/osd/OSD.cc
src/osd/OSD.h
src/osd/PG.cc