]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd/OSDMapMapping: do not crash if acting > pool size
authorSage Weil <sage@redhat.com>
Mon, 6 Aug 2018 17:57:27 +0000 (12:57 -0500)
committerSage Weil <sage@redhat.com>
Fri, 7 Sep 2018 22:10:18 +0000 (17:10 -0500)
commitf793118656437d955554a6ccbffd2b612533ef85
treec9c670a246819f05925855c836cb711b4ae2cf21
parent09ee3f3538f3013fe5b915fae93f2b9006f36970
osd/OSDMapMapping: do not crash if acting > pool size

Existing oversized pg_temp mappings (or some other bug) might make acting
exceed the pool size.  Avoid overrunning out buffer if that happens.

Note that the mapping won't be completely accurate in that case!

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