Compare commits

...

1 Commits

Author SHA1 Message Date
Arthur Petukhovsky
84f7d0ac92 Disable XLP_FIRST_IS_CONTRECORD check 2022-08-15 19:38:12 +00:00

View File

@@ -84,11 +84,11 @@ impl WalStreamDecoder {
} }
match self.state { match self.state {
State::WaitingForRecord => { State::WaitingForRecord => {
if hdr.xlp_info & XLP_FIRST_IS_CONTRECORD != 0 { // if hdr.xlp_info & XLP_FIRST_IS_CONTRECORD != 0 {
return Err( // return Err(
"invalid xlog page header: unexpected XLP_FIRST_IS_CONTRECORD".into(), // "invalid xlog page header: unexpected XLP_FIRST_IS_CONTRECORD".into(),
); // );
} // }
if hdr.xlp_rem_len != 0 { if hdr.xlp_rem_len != 0 {
return Err(format!( return Err(format!(
"invalid xlog page header: xlp_rem_len={}, but it's not a contrecord", "invalid xlog page header: xlp_rem_len={}, but it's not a contrecord",