]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
rgw: remove dout_subsys defs from header files
authorJ. Eric Ivancich <ivancich@redhat.com>
Tue, 23 Aug 2022 20:44:24 +0000 (16:44 -0400)
committerJ. Eric Ivancich <ivancich@redhat.com>
Tue, 30 Aug 2022 17:04:32 +0000 (13:04 -0400)
commitbccf6c30744d64d8bda9ee1764275d0b6df238c8
tree8a7fa00b092b90a631f878a81126f3eca0b0f23d
parent976cd1a4e726f61491fff45e01cfda2789d365a6
rgw: remove dout_subsys defs from header files

Each compilation unit should be able to define its own dout_subsys
without generating a redefinition warning. When dout_subsys is defined
in header files, it complicates this matter. This commit removes
definitions and header files and makes sure definitions are added to
.cc files as needed.

Additionally, at Adam Emerson's suggestion, use "static constexpr"
rather than "#define" to set "dout_subsys" in a few places as a
reminder to ultimately do it more broadly.

Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
12 files changed:
src/rgw/rgw_admin.cc
src/rgw/rgw_common.cc
src/rgw/rgw_cr_rados.h
src/rgw/rgw_lib.h
src/rgw/rgw_log.h
src/rgw/rgw_main.cc
src/rgw/rgw_orphan.h
src/rgw/rgw_process.h
src/rgw/rgw_sync_trace.cc
src/rgw/rgw_worker.h
src/rgw/store/dbstore/common/dbstore_log.h
src/rgw/store/dbstore/dbstore_mgr.cc