Andrew Kumansley

Various Links

I think the trick for sibling pointers is:

  • Sibling pointer updates always occur between nodes under the same parent
  • Moving parents does not require sibling pointer updates
  • Just write-lock the node and its left and right neighbors (from left to right) when performing structural modifications
  • Index scanners hop only along leaf nodes in either direction, and restart (from their last read key) if they hit a locked node, so while they can block the write, they can’t cause deadlocks, and writes can’t conflict with other writes, since they’re localized to a single parent (and the writer X-locks the parent).

More links: