From ac37e89fe15e6754650f6330db4781d45f6136e7 Mon Sep 17 00:00:00 2001 From: Jussi Saurio Date: Tue, 19 Aug 2025 15:40:11 +0300 Subject: [PATCH] remove unused PAGE_ERROR flag --- core/storage/pager.rs | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/core/storage/pager.rs b/core/storage/pager.rs index 4410b238c..9c084934a 100644 --- a/core/storage/pager.rs +++ b/core/storage/pager.rs @@ -128,8 +128,6 @@ pub type PageRef = Arc; /// Page is locked for I/O to prevent concurrent access. const PAGE_LOCKED: usize = 0b010; -/// Page had an I/O error. -const PAGE_ERROR: usize = 0b100; /// Page is dirty. Flush needed. const PAGE_DIRTY: usize = 0b1000; /// Page's contents are loaded in memory. @@ -168,18 +166,6 @@ impl Page { self.get().flags.fetch_and(!PAGE_LOCKED, Ordering::Release); } - pub fn is_error(&self) -> bool { - self.get().flags.load(Ordering::Relaxed) & PAGE_ERROR != 0 - } - - pub fn set_error(&self) { - self.get().flags.fetch_or(PAGE_ERROR, Ordering::Release); - } - - pub fn clear_error(&self) { - self.get().flags.fetch_and(!PAGE_ERROR, Ordering::Release); - } - pub fn is_dirty(&self) -> bool { self.get().flags.load(Ordering::Acquire) & PAGE_DIRTY != 0 }