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.