Skip to content

Commit 72e0726

Browse files
committed
Removed check for out-of-order nodes
1 parent c892a0b commit 72e0726

File tree

2 files changed

+3
-10
lines changed

2 files changed

+3
-10
lines changed

src/node-ram-cache.cpp

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -240,14 +240,9 @@ void node_ram_cache::set_dense(osmid_t id, osmium::Location location)
240240
}
241241

242242
if (queue[expectedpos] != &blocks[block]) {
243-
if (m_warn_node_order) {
244-
log_warn("Found out of order node {}"
245-
" ({},{}) - this will impact the cache efficiency",
246-
id, block, offset);
247-
248-
// Only warn once
249-
m_warn_node_order = false;
250-
}
243+
// This can only happen if the node is out of order which it
244+
// should never be because of earlier checks for that.
245+
// Ignore the node.
251246
return;
252247
}
253248
}

src/node-ram-cache.hpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,6 @@ class node_ram_cache
124124
osmid_t totalNodes = 0;
125125
long nodesCacheHits = 0;
126126
long nodesCacheLookups = 0;
127-
128-
bool m_warn_node_order = true;
129127
};
130128

131129
#endif // OSM2PGSQL_NODE_RAM_CACHE_HPP

0 commit comments

Comments
 (0)