Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-164

Resetting btree handles after calling schema-table read/update functions

    • Type: Icon: Task Task
    • Resolution: Done
    • WT1.2
    • Affects Version/s: None
    • Component/s: None

      Keith:

      > Michael, we're still resetting the btree handles after calling the schema-table read/update functions in the btree/bt_root.c code, there are two comments that look like this:
      >
      > session->btree = btree; /_ XXX: schema-insert overwrites _/
      >
      > I'm not sure if they need to be there – shouldn't the schema-table functions save/reset the btree handle internally?

      Michael:

      > They do need to be there for now. The simple one-shot operations (insert, remove, update) could save and restore the btree handle.
      >
      > The case that can't is any code outside there that opens a schema cursor, because:
      >
      > (a) it is closed with a regular cursor->close() – this is easy to fix; and
      > (b) there is nowhere obvious to store the old session handle between the open and close call.

            Assignee:
            Unassigned Unassigned
            Reporter:
            keith.bostic@mongodb.com Keith Bostic (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: