From 557392fe0672bc6b83ef2e0fec2c8ff7a6f22a54 Mon Sep 17 00:00:00 2001 From: Determinant Date: Wed, 10 Jun 2020 22:35:21 -0400 Subject: fix bugs in dealing with long WAL rings --- examples/demo1.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'examples/demo1.rs') diff --git a/examples/demo1.rs b/examples/demo1.rs index 40f9562..48d7c2c 100644 --- a/examples/demo1.rs +++ b/examples/demo1.rs @@ -114,8 +114,10 @@ impl WALStore for WALStoreTest { Ok(logfiles.into_iter()) } - fn apply_payload(&mut self, payload: WALBytes) -> Result<(), ()> { - println!("apply_payload(payload={})", std::str::from_utf8(&payload).unwrap()); + fn apply_payload(&mut self, payload: WALBytes, wal_off: WALPos) -> Result<(), ()> { + println!("apply_payload(payload={}, wal_off={})", + std::str::from_utf8(&payload).unwrap(), + wal_off); Ok(()) } } -- cgit v1.2.3