Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0abe743

Browse files
committed
This patch extracts page buffer pooling and the simple
least-recently-used strategy from clog.c into slru.c. It doesn'tchange any visible behaviour and passes all regression tests plus aTruncateCLOG test done manually.Apart from refactoring I made a little change to SlruRecentlyUsed,formerly ClogRecentlyUsed: It now skips incrementing lru_counts, ifslotno is already the LRU slot, thus saving a few CPU cycles. To makethis work, lru_counts are initialised to 1 in SimpleLruInit.SimpleLru will be used by pg_subtrans (part of the nested transactionsproject), so the main purpose of this patch is to avoid future codeduplication.Manfred Koizar
1 parent240dc5c commit0abe743

File tree

6 files changed

+990
-799
lines changed

6 files changed

+990
-799
lines changed

‎src/backend/access/transam/Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,15 @@
44
# Makefile for access/transam
55
#
66
# IDENTIFICATION
7-
# $Header: /cvsroot/pgsql/src/backend/access/transam/Makefile,v 1.16 2003/05/12 23:08:50 tgl Exp $
7+
# $Header: /cvsroot/pgsql/src/backend/access/transam/Makefile,v 1.17 2003/06/11 22:37:45 momjian Exp $
88
#
99
#-------------------------------------------------------------------------
1010

1111
subdir = src/backend/access/transam
1212
top_builddir = ../../../..
1313
include$(top_builddir)/src/Makefile.global
1414

15-
OBJS = clog.o transam.o varsup.o xact.o xlog.o xlogutils.o rmgr.o
15+
OBJS = clog.o transam.o varsup.o xact.o xlog.o xlogutils.o rmgr.o slru.o
1616

1717
all: SUBSYS.o
1818

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp