]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
rgw: clean-up use enum class for stats category
authorJ. Eric Ivancich <ivancich@redhat.com>
Wed, 5 Dec 2018 15:18:22 +0000 (10:18 -0500)
committerJ. Eric Ivancich <ivancich@redhat.com>
Wed, 2 Jan 2019 20:45:19 +0000 (15:45 -0500)
commitc52636c84fd3eaf3db02cfe73cb3570b81803403
tree12f8ae76c7720f92cb82ef1e8939a2f79203213f
parentc5a59c3365b7ed6376bacf0e09e6b33ab06234a0
rgw: clean-up use enum class for stats category

The stats entries for rgw buckets has a category, which used a
combination of uint8_t and enum RGWObjClass. Clean this up by
converting RGWObjClass to an enum class and using that
throughout. This provides type safety and better code clarity. Also,
add some source code documentation.

Signed-off-by: J. Eric Ivancich <ivancich@redhat.com>
14 files changed:
src/cls/rgw/cls_rgw.cc
src/cls/rgw/cls_rgw_client.cc
src/cls/rgw/cls_rgw_client.h
src/cls/rgw/cls_rgw_ops.cc
src/cls/rgw/cls_rgw_ops.h
src/cls/rgw/cls_rgw_types.cc
src/cls/rgw/cls_rgw_types.h
src/rgw/rgw_common.h
src/rgw/rgw_cr_rados.cc
src/rgw/rgw_op.cc
src/rgw/rgw_rados.cc
src/rgw/rgw_rados.h
src/rgw/rgw_reshard.cc
src/test/cls_rgw/test_cls_rgw.cc