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
e65953be
Commit
e65953be
authored
Apr 25, 2016
by
Kevin Grittner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix C comment typo and redundant test
parent
6b1a213b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
src/backend/utils/time/snapmgr.c
src/backend/utils/time/snapmgr.c
+3
-4
No files found.
src/backend/utils/time/snapmgr.c
View file @
e65953be
...
@@ -1659,7 +1659,7 @@ TransactionIdLimitedForOldSnapshots(TransactionId recentXmin,
...
@@ -1659,7 +1659,7 @@ TransactionIdLimitedForOldSnapshots(TransactionId recentXmin,
* This is not an assertion because we avoid the spinlock for
* This is not an assertion because we avoid the spinlock for
* performance, leaving open the possibility that xlimit could advance
* performance, leaving open the possibility that xlimit could advance
* and be more current; but it seems prudent to apply this limit. It
* and be more current; but it seems prudent to apply this limit. It
* might make pruning a tiny bit less agressive than it could be, but
* might make pruning a tiny bit less ag
g
ressive than it could be, but
* protects against data loss bugs.
* protects against data loss bugs.
*/
*/
if
(
TransactionIdIsNormal
(
latest_xmin
)
if
(
TransactionIdIsNormal
(
latest_xmin
)
...
@@ -1681,9 +1681,8 @@ MaintainOldSnapshotTimeMapping(int64 whenTaken, TransactionId xmin)
...
@@ -1681,9 +1681,8 @@ MaintainOldSnapshotTimeMapping(int64 whenTaken, TransactionId xmin)
{
{
int64
ts
;
int64
ts
;
/* Fast exit when old_snapshot_threshold is not used. */
/* Never call this function when old snapshot checking is disabled. */
if
(
old_snapshot_threshold
<
0
)
Assert
(
old_snapshot_threshold
>=
0
);
return
;
/* Keep track of the latest xmin seen by any process. */
/* Keep track of the latest xmin seen by any process. */
SpinLockAcquire
(
&
oldSnapshotControl
->
mutex_latest_xmin
);
SpinLockAcquire
(
&
oldSnapshotControl
->
mutex_latest_xmin
);
...
...
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