From 086c0ad8299c8fbe5dcc6583075c93abea27842e Mon Sep 17 00:00:00 2001 From: Heikki Linnakangas Date: Fri, 30 Apr 2021 12:44:06 +0300 Subject: [PATCH] Remove unused 'apply_pending' field. --- pageserver/src/page_cache.rs | 6 ------ 1 file changed, 6 deletions(-) diff --git a/pageserver/src/page_cache.rs b/pageserver/src/page_cache.rs index fe35226c29..562bbd392b 100644 --- a/pageserver/src/page_cache.rs +++ b/pageserver/src/page_cache.rs @@ -198,7 +198,6 @@ impl CacheKey { pub struct CacheEntryContent { pub page_image: Option, pub wal_record: Option, - pub apply_pending: bool, } const PAGE_IMAGE_FLAG: u8 = 1u8; @@ -222,13 +221,11 @@ impl CacheEntryContent { CacheEntryContent { page_image: Some(Bytes::from(dst)), wal_record: None, - apply_pending: false, } } else { CacheEntryContent { page_image: None, wal_record: Some(WALRecord::unpack(buf)), - apply_pending: false, } } } @@ -493,7 +490,6 @@ impl PageCache { let content = CacheEntryContent { page_image: None, wal_record: Some(rec), - apply_pending: false, }; let mut key_buf = BytesMut::new(); @@ -522,7 +518,6 @@ impl PageCache { let content = CacheEntryContent { page_image: None, wal_record: Some(rec), - apply_pending: false, }; // set new relation size trace!("Truncate relation {:?}", tag); @@ -551,7 +546,6 @@ impl PageCache { let content = CacheEntryContent { page_image: Some(img), wal_record: None, - apply_pending: false, }; let mut key_buf = BytesMut::new();