mirror of
https://github.com/FerretDB/documentdb.git
synced 2026-11-25 11:49:53 -05:00
### Does this PR have any customer impact? Yes ### Type (Feature, Refactoring, Bugfix, DevOps, Testing, Perf, etc) Bugfix ### Does it involve schema level changes? (Table, Column, Index, UDF, etc level changes) No ### Release Note (Refer [Template](../docs/release_notes/pgmongo_template.md)) ### Description Bug fix while creating the WKB for geometries/geographies where we fill the number of components later (num of points, num of linestring, num of polygons, num of geometries etc) after doing the traversal. Earlier we used to store the memory address of the place where the `number` is needed to be updated but thats bad because with larger geometries, reallocation of buffer happens and we were losing the place to update the `number`; now instead of storing the memory address, we store the the position relative to the start of buffer so even if the memory is reallocated we know where to add the `number`. Related work items: #3012835