4493319968
Do not create flat node file in append mode
...
It must already exist.
Fixes #2315
2025-04-10 11:43:06 +02:00
9e29627559
Add failing test for non-existent flat node file
...
See #2315
2025-04-10 10:47:46 +02:00
ede8880e72
Update copyright date
2025-01-13 09:07:30 +01:00
7b6ed0d2bc
Use anonymous namespace instead of static in test code
...
This is recommended in C++ Core Guidelines SF.22
https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#Rs-unnamed2
2024-08-15 22:24:35 +02:00
ff91d49869
Update copyright date
2024-01-26 16:45:53 +01:00
7ba523ba37
Update copyright date to 2023
2023-01-15 16:13:42 +01:00
45aa0b3100
Add lots of const's to the code
2023-01-06 20:25:43 +01:00
6b1b7b21d8
Mutable parameter as ptr not ref
2022-03-16 14:25:53 +01:00
93ac35280e
Use ptr not ref for mutable param of write_and_read_location()
2022-03-15 14:10:23 +01:00
56d5145615
Updates copyright date to 2022 in all files
2022-01-11 14:30:34 +01:00
d45018f88b
Update copyright year to 2021
2021-01-28 09:38:17 +01:00
61bdfb4bc5
Add/update copyright notice on all C++ files
...
This adds a copyright notice to all C++ files and the README clarifying
the license. (There is no change of the license.) This also removes a
few names explicitly mentioned as copyright holders, instead refering to
the git log which has a full list of all osm2pgsql developers. (There is
also still the AUTHORS file which names the most important developers.)
The only exception is the sprompt.cpp file which was taken from
PostgreSQL and keeps its original license information (and, of course,
the files in contrib).
2020-12-19 11:25:07 +01:00
8fa8e32ee9
Simplify test code for node_persistent_cache, no need for options
2020-12-09 17:44:00 +01:00
15e4365e78
Remove dependency on options_t from node_persistent_cache
2020-12-09 17:44:00 +01:00
d744f2fbce
Only use a single option variable for flat node store
...
This makes it impossible for the two variables to not be in sync.
2020-12-09 17:44:00 +01:00
b54ca632ba
Move way node lookup out of persistent cache
...
This code doesn't belong in the node_persistent_cache class. And without
it the node_persistent_cache doesn't have to know about the node_ram_cache
any more.
2020-12-09 14:42:45 +01:00
4b05337d3b
read_location() helper only needs a const reference to the cache
2020-04-10 10:06:25 +02:00
2464d28328
Add default constructor for node_ram_cache for testing
2020-04-10 10:06:25 +02:00
fa9b47d4f5
Refactor and clean up node_persistent_cache
2020-03-31 21:19:28 +02:00
56927b8cfb
Move catch2 into contrib, update to current version
...
This way it can be included as system include and is easier to set apart
in coverage checks etc.
2019-11-20 12:14:00 +01:00
8859b6eb8e
move new tests into place
2019-11-15 21:52:42 +01:00