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
174a5133
Commit
174a5133
authored
Aug 30, 2010
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cosmetic fixes for KnownAssignedXidsGetOldestXmin, per Fujii Masao.
parent
eb36d1ad
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
src/backend/storage/ipc/procarray.c
src/backend/storage/ipc/procarray.c
+9
-4
No files found.
src/backend/storage/ipc/procarray.c
View file @
174a5133
...
@@ -37,7 +37,7 @@
...
@@ -37,7 +37,7 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/storage/ipc/procarray.c,v 1.7
4 2010/08/30 14:16:48 sriggs
Exp $
* $PostgreSQL: pgsql/src/backend/storage/ipc/procarray.c,v 1.7
5 2010/08/30 17:30:44 tgl
Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -156,7 +156,7 @@ static int KnownAssignedXidsGet(TransactionId *xarray, TransactionId xmax);
...
@@ -156,7 +156,7 @@ static int KnownAssignedXidsGet(TransactionId *xarray, TransactionId xmax);
static
int
KnownAssignedXidsGetAndSetXmin
(
TransactionId
*
xarray
,
static
int
KnownAssignedXidsGetAndSetXmin
(
TransactionId
*
xarray
,
TransactionId
*
xmin
,
TransactionId
*
xmin
,
TransactionId
xmax
);
TransactionId
xmax
);
static
int
KnownAssignedXidsGetOldestXmin
(
void
);
static
TransactionId
KnownAssignedXidsGetOldestXmin
(
void
);
static
void
KnownAssignedXidsDisplay
(
int
trace_level
);
static
void
KnownAssignedXidsDisplay
(
int
trace_level
);
/*
/*
...
@@ -564,7 +564,7 @@ ProcArrayApplyRecoveryInfo(RunningTransactions running)
...
@@ -564,7 +564,7 @@ ProcArrayApplyRecoveryInfo(RunningTransactions running)
/*
/*
* Now we have a copy of any KnownAssignedXids we can zero the array
* Now we have a copy of any KnownAssignedXids we can zero the array
* before we re-insert
ion of
combined snapshot.
* before we re-insert combined snapshot.
*/
*/
KnownAssignedXidsRemovePreceding
(
InvalidTransactionId
);
KnownAssignedXidsRemovePreceding
(
InvalidTransactionId
);
...
@@ -1120,6 +1120,7 @@ GetOldestXmin(bool allDbs, bool ignoreVacuum)
...
@@ -1120,6 +1120,7 @@ GetOldestXmin(bool allDbs, bool ignoreVacuum)
* older than the main procarray.
* older than the main procarray.
*/
*/
TransactionId
kaxmin
=
KnownAssignedXidsGetOldestXmin
();
TransactionId
kaxmin
=
KnownAssignedXidsGetOldestXmin
();
if
(
TransactionIdIsNormal
(
kaxmin
)
&&
if
(
TransactionIdIsNormal
(
kaxmin
)
&&
TransactionIdPrecedes
(
kaxmin
,
result
))
TransactionIdPrecedes
(
kaxmin
,
result
))
result
=
kaxmin
;
result
=
kaxmin
;
...
@@ -3028,7 +3029,11 @@ KnownAssignedXidsGetAndSetXmin(TransactionId *xarray, TransactionId *xmin,
...
@@ -3028,7 +3029,11 @@ KnownAssignedXidsGetAndSetXmin(TransactionId *xarray, TransactionId *xmin,
return
count
;
return
count
;
}
}
static
int
/*
* Get oldest XID in the KnownAssignedXids array, or InvalidTransactionId
* if nothing there.
*/
static
TransactionId
KnownAssignedXidsGetOldestXmin
(
void
)
KnownAssignedXidsGetOldestXmin
(
void
)
{
{
/* use volatile pointer to prevent code rearrangement */
/* use volatile pointer to prevent code rearrangement */
...
...
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