]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: make project_pg_history handle concurrent osdmap publish 29976/head
authorSage Weil <sage@redhat.com>
Thu, 16 Aug 2018 17:22:57 +0000 (12:22 -0500)
committerDavid Zafman <dzafman@redhat.com>
Wed, 28 Aug 2019 17:49:48 +0000 (10:49 -0700)
commit2fb26b24b3621ec885c9641c31480c74719eac4b
tree41f1a053f799dac7e693b8878a66124497cb8f00
parent692a678a00919bcce61c0ee46a3adbdeee8265e9
osd: make project_pg_history handle concurrent osdmap publish

The class's osdmap may be updated while we are in our loop.  Pass it in
explicitly instead.

Fixes: http://tracker.ceph.com/issues/26970
Signed-off-by: Sage Weil <sage@redhat.com>
(cherry picked from commit cfe6ca82ed800e81e286396b5b7783ca299325f0)

Correction to this commit required because of separating it from very large pull request.
Needed to include part of 4bc01379bbf946d2f5963dcca6b071914117ce4a which
changed endmap from const OSDMap& to const OSDMapRef&.
src/osd/OSD.cc
src/osd/OSD.h