]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
crimson/osd: use app.alien() to initialize AlienStore::alien
authorKefu Chai <kchai@redhat.com>
Sun, 18 Jul 2021 14:01:13 +0000 (22:01 +0800)
committerKefu Chai <kchai@redhat.com>
Sun, 18 Jul 2021 14:06:36 +0000 (22:06 +0800)
commit8fad523d41008727c9a952afcda15b77be50ba3c
tree55a074428ffa531e86253eb7bbeda8d6361e353a
parent43d0e2c21852e732c1d19c93a104de3b5b8314d7
crimson/osd: use app.alien() to initialize AlienStore::alien

in e53ea0886fba9073904f59ea85fb73d854565921, the new alien::submit_to() API
is used in the place of the old one. but seastar::alien::instance::_qs
should be initialized before we are able to use the alien instance, just
creating an instance of alien::instance is not enough.

in this change, instead of creating an instance of alien::instance using
make_unique<>, the return value of app.alien() is used to initialize the
alien member variable of AlienStore. app.alien() is always properly
initialized by reactor.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/crimson/os/alienstore/alien_store.cc
src/crimson/os/alienstore/alien_store.h
src/crimson/os/futurized_store.cc
src/crimson/os/futurized_store.h
src/crimson/osd/main.cc
src/crimson/osd/osd.cc
src/crimson/osd/osd.h