Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
2ca05fe4
Commit
2ca05fe4
authored
Jan 14, 1997
by
Vadim B. Mikheev
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ReleaseTmpRelBuffers is ReleaseRelationBuffers now.
parent
791e9973
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
12 deletions
+8
-12
src/backend/storage/buffer/bufmgr.c
src/backend/storage/buffer/bufmgr.c
+8
-12
No files found.
src/backend/storage/buffer/bufmgr.c
View file @
2ca05fe4
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/storage/buffer/bufmgr.c,v 1.
6 1996/12/31 06:47:30
vadim Exp $
* $Header: /cvsroot/pgsql/src/backend/storage/buffer/bufmgr.c,v 1.
7 1997/01/14 05:40:45
vadim Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -1227,33 +1227,29 @@ BufferGetBlock(Buffer buffer)
}
/* ---------------------------------------------------------------------
* Release
TmpRel
Buffers
* Release
Relation
Buffers
*
* this function unmarks all the dirty pages of a
temporary
*
relation
in the buffer pool so that at the end of transaction
* this function unmarks all the dirty pages of a
relation
*
in the buffer pool so that at the end of transaction
* these pages will not be flushed.
* XXX currently it sequentially searches the buffer pool, should be
* changed to more clever ways of searching.
* --------------------------------------------------------------------
*/
void
Release
TmpRelBuffers
(
Relation
temprel
desc
)
Release
RelationBuffers
(
Relation
r
desc
)
{
register
int
i
;
int
holding
=
0
;
BufferDesc
*
buf
;
/*
* Is tempreldesc->rd_islocal == FALSE possible at all ?
* But I don't want to mess something now. - vadim 12/31/96
*/
if
(
tempreldesc
->
rd_islocal
)
if
(
rdesc
->
rd_islocal
)
{
for
(
i
=
0
;
i
<
NLocBuffer
;
i
++
)
{
buf
=
&
LocalBufferDescriptors
[
i
];
if
((
buf
->
flags
&
BM_DIRTY
)
&&
(
buf
->
tag
.
relId
.
relId
==
temprel
desc
->
rd_id
))
(
buf
->
tag
.
relId
.
relId
==
r
desc
->
rd_id
))
{
buf
->
flags
&=
~
BM_DIRTY
;
}
...
...
@@ -1269,7 +1265,7 @@ ReleaseTmpRelBuffers(Relation tempreldesc)
}
if
((
buf
->
flags
&
BM_DIRTY
)
&&
(
buf
->
tag
.
relId
.
dbId
==
MyDatabaseId
)
&&
(
buf
->
tag
.
relId
.
relId
==
temprel
desc
->
rd_id
))
{
(
buf
->
tag
.
relId
.
relId
==
r
desc
->
rd_id
))
{
buf
->
flags
&=
~
BM_DIRTY
;
if
(
!
(
buf
->
flags
&
BM_FREE
))
{
SpinRelease
(
BufMgrLock
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment