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
936114a0
Commit
936114a0
authored
Sep 04, 2001
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix comment, add Assert.
parent
bc1a61a3
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
13 additions
and
6 deletions
+13
-6
src/backend/commands/vacuum.c
src/backend/commands/vacuum.c
+3
-3
src/backend/commands/vacuumlazy.c
src/backend/commands/vacuumlazy.c
+10
-3
No files found.
src/backend/commands/vacuum.c
View file @
936114a0
...
...
@@ -13,7 +13,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/commands/vacuum.c,v 1.20
8 2001/08/26 16:55:59
tgl Exp $
* $Header: /cvsroot/pgsql/src/backend/commands/vacuum.c,v 1.20
9 2001/09/04 19:12:05
tgl Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -1069,8 +1069,8 @@ scan_heap(VRelStats *vacrelstats, Relation onerel,
FreezeLimit
))
{
tuple
.
t_data
->
t_xmin
=
FrozenTransactionId
;
tuple
.
t_data
->
t_infomask
&=
~
HEAP_XMIN_INVALID
;
tuple
.
t_data
->
t_infomask
|=
HEAP_XMIN_COMMITTED
;
/* infomask should be okay already */
Assert
(
tuple
.
t_data
->
t_infomask
&
HEAP_XMIN_COMMITTED
)
;
pgchanged
=
true
;
}
break
;
...
...
src/backend/commands/vacuumlazy.c
View file @
936114a0
...
...
@@ -31,7 +31,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/commands/vacuumlazy.c,v 1.
5 2001/08/26 16:55:59
tgl Exp $
* $Header: /cvsroot/pgsql/src/backend/commands/vacuumlazy.c,v 1.
6 2001/09/04 19:12:05
tgl Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -318,14 +318,21 @@ lazy_scan_heap(Relation onerel, LVRelStats *vacrelstats,
/*
* Tuple is good. Consider whether to replace its xmin
* value with FrozenTransactionId.
*
* NB: Since we hold only a shared buffer lock here,
* we are assuming that TransactionId read/write
* is atomic. This is not the only place that makes
* such an assumption. It'd be possible to avoid the
* assumption by momentarily acquiring exclusive lock,
* but for the moment I see no need to.
*/
if
(
TransactionIdIsNormal
(
tuple
.
t_data
->
t_xmin
)
&&
TransactionIdPrecedes
(
tuple
.
t_data
->
t_xmin
,
FreezeLimit
))
{
tuple
.
t_data
->
t_xmin
=
FrozenTransactionId
;
tuple
.
t_data
->
t_infomask
&=
~
HEAP_XMIN_INVALID
;
tuple
.
t_data
->
t_infomask
|=
HEAP_XMIN_COMMITTED
;
/* infomask should be okay already */
Assert
(
tuple
.
t_data
->
t_infomask
&
HEAP_XMIN_COMMITTED
)
;
pgchanged
=
true
;
}
break
;
...
...
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