Fix handling truncated WAL records in GC

This commit is contained in:
Konstantin Knizhnik
2021-05-05 08:29:36 +03:00
parent a2841c750d
commit 033ea537e2

View File

@@ -211,7 +211,7 @@ impl CacheEntryContent {
buf.put_u16(image.len() as u16);
buf.put_slice(&image[..]);
} else if let Some(rec) = &self.wal_record {
if rec.truncated {
if rec.truncate {
buf.put_u8(TRUNCATED_FLAG);
} else {
buf.put_u8(0);