From 1369145e83cbbeb9294ff205222a3f5879c0b723 Mon Sep 17 00:00:00 2001 From: anastasia Date: Thu, 29 Apr 2021 16:17:43 +0300 Subject: [PATCH] code cleanup --- pageserver/src/waldecoder.rs | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/pageserver/src/waldecoder.rs b/pageserver/src/waldecoder.rs index f3a646aaf5..054721db4d 100644 --- a/pageserver/src/waldecoder.rs +++ b/pageserver/src/waldecoder.rs @@ -306,17 +306,6 @@ pub struct DecodedWALRecord { pub main_data_offset: usize, } -// // Is this record an XLOG_SWITCH record? They need some special processing, -// // so we need to check for that before the rest of the parsing. -// // -// // FIXME: refactor this and decode_wal_record() below to avoid the duplication. -// fn is_xlog_switch_record(rec: &Bytes) -> bool { -// let mut buf = rec.clone(); - -// let xlogrec = XLogRecord::from_bytes(&mut buf); -// xlogrec.xl_info == pg_constants::XLOG_SWITCH && xlogrec.xl_rmid == pg_constants::RM_XLOG_ID -// } - pub type Oid = u32; pub type BlockNumber = u32;