mirror of
https://github.com/FerretDB/documentdb.git
synced 2026-11-25 11:49:53 -05:00
### Does this PR have any customer impact? ### Type (Feature, Refactoring, Bugfix, DevOps, Testing, Perf, etc) ### Does it involve schema level changes? (Table, Column, Index, UDF, etc level changes) ### Are you introducing any new config? If yes, do you have tests with and without them being set? ### Release Note (Refer [Template](../docs/release_notes/pgmongo_template.md)) ### Description Index truncation ---- #### AI description (iteration 1) #### PR Classification Bug fix to address incorrect data size calculation in index truncation. #### PR Summary This pull request corrects the data size calculation in the `TruncateNestedEntry` function to ensure accurate index truncation. - `src/opclass/gin_index_term.c`: Adjusted `dataSize` calculation by adding `currentLength` to the base value.