From 2dbf453d4bda7ac8e1a8494570c2d000ad6fc905 Mon Sep 17 00:00:00 2001 From: JaySon-Huang Date: Tue, 7 Jan 2025 09:49:45 +0800 Subject: [PATCH] Fix lint Signed-off-by: JaySon-Huang --- dbms/src/Storages/Page/Page.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/dbms/src/Storages/Page/Page.h b/dbms/src/Storages/Page/Page.h index 7a5dc2977c3..61f5c01f4a4 100644 --- a/dbms/src/Storages/Page/Page.h +++ b/dbms/src/Storages/Page/Page.h @@ -47,7 +47,7 @@ struct FieldOffsetInsidePage bool operator<(const FieldOffsetInsidePage & rhs) const { return index < rhs.index; } }; -struct Page +class Page { public: static Page invalidPage() @@ -69,7 +69,7 @@ struct Page std::set field_offsets; private: - bool is_valid; + bool is_valid = false; public: inline bool isValid() const { return is_valid; }