[Tile-serving] [openstreetmap/osm2pgsql] Add support for osm2pgsql_properties table to osm2pgsql-replication (PR #2029)
Sarah Hoffmann
notifications at github.com
Thu Aug 10 20:18:09 UTC 2023
@lonvia commented on this pull request.
> + return self
+
+
+ def get_state_info(self, seq=None, retries=2):
+ assert self.state_infos, 'Replication mock not propoerly set up'
+ if seq is None:
+ return self.state_infos[-1]
+
+ for info in self.state_infos:
+ if info.sequence == seq:
+ return info
+
+ assert False, f"No sequence information for sequence ID {seq}."
+
+ def timestamp_to_sequence(self, timestamp, balanced_search=False):
+ assert self.state_infos, 'Replication mock not propoerly set up'
Fixed.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/osm2pgsql/pull/2029#discussion_r1290636706
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/osm2pgsql/pull/2029/review/1572664568 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/tile-serving/attachments/20230810/96c675ce/attachment.htm>
More information about the Tile-serving
mailing list