Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
Docs Required
Description
The new structure should work as a stack or log.
When thread obtains lock we push pageId (+meta) on the top of the stack when thread release lock we pop pageId from the stack. Their cases when thread may unlock page not from current thread frame (some split pages in B-tree), from previous, in this case, we should go down to stack and find this page and update meta.
The stack should implement PageLockListener, and provide functionality for tracking page locks.