From ba4f8e94aa2c6703f5b0602babfc06166bd25b42 Mon Sep 17 00:00:00 2001 From: Heikki Linnakangas Date: Thu, 8 Apr 2021 13:30:42 +0300 Subject: [PATCH] Minor comment fixes. --- walkeeper/src/wal_service.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/walkeeper/src/wal_service.rs b/walkeeper/src/wal_service.rs index b91a966afa..d70c10ce22 100644 --- a/walkeeper/src/wal_service.rs +++ b/walkeeper/src/wal_service.rs @@ -585,7 +585,7 @@ impl Connection { fn set_system(&mut self, id: SystemId) -> Result<()> { let mut systems = SYSTEMS.lock().unwrap(); if id == 0 { - // non-multitenant configuration: just sigle instance + // non-multitenant configuration: just a single instance if let Some(system) = systems.values().next() { self.system = Some(system.clone()); return Ok(()); @@ -937,6 +937,10 @@ impl Connection { /* * Always start streaming at the beginning of a segment + * + * FIXME: It is common practice to start streaming at the beginning of + * the segment, but it should be up to the client to decide that. We + * shouldn't enforce that here. */ start_pos -= XLogSegmentOffset(start_pos, wal_seg_size) as u64;