mirror of
https://github.com/neondatabase/neon.git
synced 2026-06-04 05:50:38 +00:00
1. Always start repliction from the begging of WAL segment (to be able to skip missed segments)
2. Do not materialize always last version of objects in GC (only when needed) 3. Fix history test 4. Fix CPU consumption in wal_keeper when connection is broken 5. Fix handling of --recall parameter in walkeeper
This commit is contained in:
@@ -97,10 +97,12 @@ impl WalStreamDecoder {
|
||||
let hdr = XLogLongPageHeaderData::from_bytes(&mut self.inputbuf);
|
||||
|
||||
if hdr.std.xlp_pageaddr != self.lsn.0 {
|
||||
return Err(WalDecodeError {
|
||||
msg: "invalid xlog segment header".into(),
|
||||
lsn: self.lsn,
|
||||
});
|
||||
info!(
|
||||
"Receive page with LSN {} instead of expected {}",
|
||||
Lsn(hdr.std.xlp_pageaddr),
|
||||
self.lsn
|
||||
);
|
||||
self.lsn = Lsn(hdr.std.xlp_pageaddr);
|
||||
}
|
||||
// TODO: verify the remaining fields in the header
|
||||
|
||||
|
||||
Reference in New Issue
Block a user