|
libfossil
|
A cache of fsl_cx state which applies per transaction level. More...
#include "internal.h"
Public Member Functions | |
| fsl__ptl_line_map (E) unsigned changeMarker | |
| A poor-man's approach to recognizing when to clear fsl_cx::cache::blobContent when a fsl__ptl stack level is popped. | |
A cache of fsl_cx state which applies per transaction level.
We need one of these per level in the transaction stack.
Definition at line 317 of file internal.h.
| fsl__ptl_line::fsl__ptl_line_map | ( | E | ) |
A poor-man's approach to recognizing when to clear fsl_cx::cache::blobContent when a fsl__ptl stack level is popped.
The problem is that fsl__bccache is global to a given fsl_cx instance but may hold RIDs which are invalidated when a transaction level pops. fsl__bccache is not structured such that removing individual entries by RID is easy or cheap, so we invalidate the whole cache if a given transaction level added anything to fsl_cx::cache::blobContent. When pushing a PTL level, we record fsl__bccache::changeMarker here and compare it when the transaction pops. If they differ, the blob content cache is cleared. An improvement to this would be to extend fsl__bccache to be able to remove entries by RID, but that's not on today's proverbial menu.
References E.