mirror of
https://github.com/neondatabase/neon.git
synced 2026-10-15 16:22:57 +00:00
As pointed out in https://github.com/neondatabase/neon/pull/2785/files/b8488e70a9497d41d394af375c04cfe21c7871c5#r1024319620 the following is wrong for the case where the remote storage is empty: metadata = whatever the local-ONLY metadata is ... upload_queue.latest_metadata = Some(metadata.clone()); upload_queue.last_uploaded_consistent_lsn = Some(metadata.disk_consistent_lsn()); The reason why it's wrong is that we return last_uploaded_consistent_lsn to safekeepers. So, we'd be returning an Lsn that is not yet uploaded to S3.