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
7d738f95
Commit
7d738f95
authored
Feb 07, 2000
by
Hiroshi Inoue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove ugly call ImmediateSharedRelationCacheInvalidate()
from md.c.
parent
4acf8909
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
25 deletions
+1
-25
src/backend/storage/smgr/md.c
src/backend/storage/smgr/md.c
+1
-25
No files found.
src/backend/storage/smgr/md.c
View file @
7d738f95
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/storage/smgr/md.c,v 1.6
3 2000/01/26 05:57:05 momjian
Exp $
* $Header: /cvsroot/pgsql/src/backend/storage/smgr/md.c,v 1.6
4 2000/02/07 02:38:18 inoue
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -205,15 +205,6 @@ mdunlink(Relation reln)
*/
if
(
reln
->
rd_unlinked
&&
reln
->
rd_fd
<
0
)
return
SM_SUCCESS
;
/*
* This call isn't good for independency of md stuff,but
* mdunlink() unlinks the base file immediately and couldn't
* be rollbacked in case of abort. We must guarantee all
* backends' relation cache invalidation here.
* This would be unnecessary if unlinking is postponed
* till end of transaction.
*/
ImmediateSharedRelationCacheInvalidate
(
reln
);
/*
* Force all segments of the relation to be opened, so that we
* won't miss deleting any of them.
...
...
@@ -786,7 +777,6 @@ mdtruncate(Relation reln, int nblocks)
#ifndef LET_OS_MANAGE_FILESIZE
MemoryContext
oldcxt
;
int
priorblocks
;
bool
invalregistered
=
false
;
#endif
/* NOTE: mdnblocks makes sure we have opened all existing segments,
...
...
@@ -818,20 +808,6 @@ mdtruncate(Relation reln, int nblocks)
* a big file...
*/
FileTruncate
(
v
->
mdfd_vfd
,
0
);
/*
* To call ImmediateSharedRelationCacheInvalidate() here
* isn't good for independency of md stuff,but smgrunlink()
* removes the base file immediately and couldn't be
* rollbacked in case of abort. We must guarantee
* all backends' relation cache invalidation here.
* This would be unnecessary if the truncation is postponed
* till end of transaction.
*/
if
(
!
invalregistered
)
{
ImmediateSharedRelationCacheInvalidate
(
reln
);
invalregistered
=
true
;
}
FileUnlink
(
v
->
mdfd_vfd
);
v
=
v
->
mdfd_chain
;
Assert
(
ov
!=
&
Md_fdvec
[
fd
]);
/* we never drop the 1st segment */
...
...
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