Menu

#1032 app_data field of DBT structure is not always copied when call bdb_bt_compare

GC 3.x
closed
3
2024-12-12
2024-12-12
No

When using BDB to handle indexed files, the collating sequence function is saved either in the app_data field of a DBT structure (as of writing for version 4.1 and upward), or in a bdb_app_data static variable.
In the former case, depending on the size of the record, the app_data field would not be copied to the DBT structure passed to bdb_bt_compare which would cause an error to be triggered:
bdb_bt_compare was set but no collating sequence was stored in DBT.

Related

Commit: [r5452]

Discussion

  • Emilien Lemaire

    Emilien Lemaire - 2024-12-12

    The bug seems to be present on all BDB versions, I tested with version 6 and 18 and got the same result

     
  • Simon Sobisch

    Simon Sobisch - 2024-12-12
    • labels: --> Indexed File, BDB
    • status: open --> accepted
    • assigned_to: Emilien Lemaire
    • Group: unclassified --> GC 3.x
    • Priority: 5 - default --> 3
     
  • Simon Sobisch

    Simon Sobisch - 2024-12-12
    • status: accepted --> closed
     
  • Simon Sobisch

    Simon Sobisch - 2024-12-12

    fixed with [r5398]

     

    Related

    Commit: [r5398]


Log in to post a comment.

MongoDB Logo MongoDB