]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
crimson/os: define SeastoreCollection as a class
authorKefu Chai <kchai@redhat.com>
Sat, 15 May 2021 04:18:07 +0000 (12:18 +0800)
committerKefu Chai <kchai@redhat.com>
Tue, 18 May 2021 10:05:33 +0000 (18:05 +0800)
to be consistent with the forward declaration. C++ standard does not
differentiate class from struct in this perspective. but Clang warngs at
seeing it. so silence the warning.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/crimson/os/seastore/seastore.cc

index cf9a6cb02b7dea5ae260c28fd78eaf39e70965a2..b7de87528f18bd6f5cfbe50fc741ac5dac82332b 100644 (file)
@@ -33,7 +33,8 @@ SeaStore::~SeaStore() {
   perf_service->remove_from_collection();
 }
 
-struct SeastoreCollection final : public FuturizedCollection {
+class SeastoreCollection final : public FuturizedCollection {
+public:
   template <typename... T>
   SeastoreCollection(T&&... args) :
     FuturizedCollection(std::forward<T>(args)...) {}