From aa9ae8e2a9e3aa990bed17f83ab8135706152f24 Mon Sep 17 00:00:00 2001 From: Varsha Rao Date: Fri, 6 Sep 2019 04:55:53 -0400 Subject: [PATCH] mds: Reorganize class members in LogEvent header Fixes: https://tracker.ceph.com/issues/41679 Signed-off-by: Varsha Rao --- src/mds/LogEvent.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/mds/LogEvent.h b/src/mds/LogEvent.h index 7c7273f8f98..ec30bf45d31 100644 --- a/src/mds/LogEvent.h +++ b/src/mds/LogEvent.h @@ -53,8 +53,8 @@ class EMetaBlob; // generic log event class LogEvent { public: - friend class MDLog; typedef __u32 EventType; + friend class MDLog; LogEvent() = delete; explicit LogEvent(int t) : _type(t) {} @@ -109,11 +109,11 @@ public: virtual EMetaBlob *get_metablob() { return NULL; } protected: - utime_t stamp; - LogSegment* get_segment() { return _segment; } LogSegment const* get_segment() const { return _segment; } + utime_t stamp; + private: static const std::map types; -- 2.39.5