]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
crimson/osd: create store in main()
authorKefu Chai <kchai@redhat.com>
Sun, 18 Jul 2021 14:44:59 +0000 (22:44 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 19 Jul 2021 01:13:21 +0000 (09:13 +0800)
commiteec84bb80c3074f64abe38e01f5ecb807625dc48
tree857f391d898d09433c8d94b81148a9e780b302d1
parent8fad523d41008727c9a952afcda15b77be50ba3c
crimson/osd: create store in main()

to initialize an alienstore with a reference of
seastar::alien::instance is but the internal of AlienStore, would be
better if we could avoid exposing it as a part of the interface of
crimson::osd::OSD().

so, in this change, instead of creating FuturizedStore in OSD(), we
create it in main() where the app is available, so we can just create
FuturizedStore without passing the alien instance all the way down to
OSD().

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