]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
cmake: extract rgw_*_scheduler.cc into rgw_schedulers
authorKefu Chai <kchai@redhat.com>
Tue, 4 Jun 2019 12:59:24 +0000 (20:59 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 4 Jun 2019 13:17:15 +0000 (21:17 +0800)
commitd3e0f3469f0f56d8eaebd7d093fd80dc7c3eef3e
tree6eb2100b7119c640a35abb76e5d6a87094a194f6
parent61bd70535fd3e0fe575f0682d665e9b9c878ad24
cmake: extract rgw_*_scheduler.cc into rgw_schedulers

i was running into following issue:

../../../lib/libradosgw_a.a(rgw_loadgen_process.cc.o): In function
`RGWLoadGenProcess::run()':
/home/jenkins-build/build/workspace/ceph-pull-requests/src/rgw/rgw_loadgen_process.cc:102:
undefined reference to `signal_shutdown()'
collect2: error: ld returned 1 exit status

signal_shutdown() is only used by rgw_main.cc to notify the main thread,
but we don't need this facility in unit test exercising the schedulers,
so, in this change, rgw schedulers are extracted into librgw_schedulers,
so this library can be consumed by the unit test.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/rgw/CMakeLists.txt
src/test/rgw/CMakeLists.txt