The context pointed by a cursor become invalid or out-dated after switching layer
layer
Let cur
be a cursor that has a context associated with the current layer.
After switching layers (typically by calling end_transit
)...
-
commit t cur
will fail because the context pointed bycur
is outdated- In this situation, the layer associated with that context must be the current layer, but not
-
cur
may not be readable ifdiscard_old_layer
is called and the context is deleted