]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw: refactor rgw_main
authorMatt Benjamin <mbenjamin@redhat.com>
Fri, 8 May 2015 18:07:01 +0000 (20:07 +0200)
committerMatt Benjamin <mbenjamin@redhat.com>
Fri, 12 Feb 2016 16:54:17 +0000 (11:54 -0500)
commit76f1dcaf80732db2f9572745161327e8b874ea6c
tree31753d53f73db5e715ec7806d8a9e910c818dc76
parentb709f7ce1d006ae13357be6494a8f3d096170804
rgw: refactor rgw_main

This change is an extended version of work by Orit Wasserman
moving some request-processing class headers and definition to
their own files (RGWProcess, RGWProcessEnv, RGWProcessFrontend),
along with process_request.

I have taken the refactoring further, so as to remove all class
declarations and member definitions from rgw_main.cc, so that the
file retains just:

* the responsibility to parse arguments and supervise the daemon
* the responsibility to select from front-ends/configure the RGW service
* usage

I have made small adjustments:
* moving some processing out of headers, to remove circular deps
* removed unused headers from rgw_main.cc
* added editor boilerplate and tweaked include guards in some files

Signed-off-by: Matt Benjamin <mbenjamin@redhat.com>
src/CMakeLists.txt
src/rgw/Makefile.am
src/rgw/rgw_fcgi.h
src/rgw/rgw_frontend.cc [new file with mode: 0644]
src/rgw/rgw_frontend.h [new file with mode: 0644]
src/rgw/rgw_main.cc
src/rgw/rgw_op.cc
src/rgw/rgw_process.cc [new file with mode: 0644]
src/rgw/rgw_process.h [new file with mode: 0644]
src/rgw/rgw_request.cc [new file with mode: 0644]
src/rgw/rgw_request.h [new file with mode: 0644]