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
1129c2b0
Commit
1129c2b0
authored
Jan 24, 2016
by
Simon Riggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Correct comment in GetConflictingVirtualXIDs()
We use Share lock because it is safe to do so.
parent
00347575
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
src/backend/storage/ipc/procarray.c
src/backend/storage/ipc/procarray.c
+5
-2
No files found.
src/backend/storage/ipc/procarray.c
View file @
1129c2b0
...
...
@@ -2540,8 +2540,11 @@ GetConflictingVirtualXIDs(TransactionId limitXmin, Oid dbOid)
/*
* We ignore an invalid pxmin because this means that backend has
* no snapshot and cannot get another one while we hold exclusive
* lock.
* no snapshot currently. We hold a Share lock to avoid contention
* with users taking snapshots. That is not a problem because
* the current xmin is always at least one higher than the latest
* removed xid, so any new snapshot would never conflict with the
* test here.
*/
if
(
!
TransactionIdIsValid
(
limitXmin
)
||
(
TransactionIdIsValid
(
pxmin
)
&&
!
TransactionIdFollows
(
pxmin
,
limitXmin
)))
...
...
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