Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 954c181

Browse files
committed
Remove an unnecessary HOLD_INTERRUPTS/RESUME_INTERRUPTS pair.
This was required back when RESUME_INTERRUPTS could actually execute ProcessInterrupts, but that hasn't been true since 2001...
1 parent bd95c74 commit 954c181

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)