From 2cc0b392e886bd67a50ebcbd57a4244d5dd6fe64 Mon Sep 17 00:00:00 2001 From: Joonas Koivunen Date: Thu, 12 Sep 2024 10:17:19 +0000 Subject: [PATCH] chore: remove extra method --- pageserver/src/walredo.rs | 18 ++---------------- 1 file changed, 2 insertions(+), 16 deletions(-) diff --git a/pageserver/src/walredo.rs b/pageserver/src/walredo.rs index 68f3b7af0c..531d3b9bf1 100644 --- a/pageserver/src/walredo.rs +++ b/pageserver/src/walredo.rs @@ -448,9 +448,7 @@ impl PostgresRedoManager { } } - /// - /// Process a batch of WAL records using bespoken Neon code. - /// + /// Process a batch of WAL records using bespoke Neon code. fn apply_batch_neon( &self, key: Key, @@ -471,7 +469,7 @@ impl PostgresRedoManager { // Apply all the WAL records in the batch for (record_lsn, record) in records.iter() { - self.apply_record_neon(key, &mut page, *record_lsn, record)?; + apply_neon::apply_in_neon(record, *record_lsn, key, &mut page)?; } // Success! let duration = start_time.elapsed(); @@ -488,18 +486,6 @@ impl PostgresRedoManager { Ok(page.freeze()) } - - fn apply_record_neon( - &self, - key: Key, - page: &mut BytesMut, - record_lsn: Lsn, - record: &NeonWalRecord, - ) -> anyhow::Result<()> { - apply_neon::apply_in_neon(record, record_lsn, key, page)?; - - Ok(()) - } } #[cfg(test)]