diff options
author | Determinant <[email protected]> | 2020-06-10 22:35:21 -0400 |
---|---|---|
committer | Determinant <[email protected]> | 2020-06-10 22:35:21 -0400 |
commit | 557392fe0672bc6b83ef2e0fec2c8ff7a6f22a54 (patch) | |
tree | 63ff6751fb2ef4b44a9e1949cca9df329d7fb9b8 /examples/demo1.rs | |
parent | 5b3cadb74fa4de64cf1006808167d36dfbc45a8d (diff) |
fix bugs in dealing with long WAL rings
Diffstat (limited to 'examples/demo1.rs')
-rw-r--r-- | examples/demo1.rs | 6 |
1 files changed, 4 insertions, 2 deletions
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(()) } } |