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

Commit954c181

Browse files
committed
Remove an unnecessary HOLD_INTERRUPTS/RESUME_INTERRUPTS pair.
This was required back when RESUME_INTERRUPTS could actuallyexecute ProcessInterrupts, but that hasn't been true since 2001...
1 parentbd95c74 commit954c181

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

‎src/backend/storage/buffer/bufmgr.c

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $PostgreSQL: pgsql/src/backend/storage/buffer/bufmgr.c,v 1.212 2006/10/04 00:29:57 momjian Exp $
11+
* $PostgreSQL: pgsql/src/backend/storage/buffer/bufmgr.c,v 1.213 2006/10/22 20:34:54 tgl Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -694,21 +694,14 @@ InvalidateBuffer(volatile BufferDesc *buf)
694694
BufTableDelete(&oldTag,oldHash);
695695

696696
/*
697-
* Avoid accepting a cancel interrupt when we release the mapping lock;
698-
* that would leave the buffer free but not on the freelist. (Which would
699-
* not be fatal, since it'd get picked up again by the clock scanning
700-
* code, but we'd rather be sure it gets to the freelist.)
697+
* Done with mapping lock.
701698
*/
702-
HOLD_INTERRUPTS();
703-
704699
LWLockRelease(oldPartitionLock);
705700

706701
/*
707702
* Insert the buffer at the head of the list of free buffers.
708703
*/
709704
StrategyFreeBuffer(buf, true);
710-
711-
RESUME_INTERRUPTS();
712705
}
713706

714707
/*

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp