Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Momjian2003-06-11 22:37:46 +0000
committerBruce Momjian2003-06-11 22:37:46 +0000
commit0abe7431c6d7a022e7f24a4f145c702900f56174 (patch)
tree86af2971d8eb0bb48b9622abc0db40f8186b881a /src/interfaces/python
parent240dc5cddc8c5fd13fbf8196034436183ed61a2f (diff)
This patch extracts page buffer pooling and the simple
least-recently-used strategy from clog.c into slru.c. It doesn't change any visible behaviour and passes all regression tests plus a TruncateCLOG test done manually. Apart from refactoring I made a little change to SlruRecentlyUsed, formerly ClogRecentlyUsed: It now skips incrementing lru_counts, if slotno is already the LRU slot, thus saving a few CPU cycles. To make this work, lru_counts are initialised to 1 in SimpleLruInit. SimpleLru will be used by pg_subtrans (part of the nested transactions project), so the main purpose of this patch is to avoid future code duplication. Manfred Koizar
Diffstat (limited to 'src/interfaces/python')
0 files changed, 0 insertions, 0 deletions