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
336a578b
Commit
336a578b
authored
Mar 12, 2014
by
Robert Haas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix incorrect assertion about historical snapshots.
Also fix some nearby comments. Andres Freund
parent
890194f1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
src/backend/utils/time/snapmgr.c
src/backend/utils/time/snapmgr.c
+6
-4
No files found.
src/backend/utils/time/snapmgr.c
View file @
336a578b
...
...
@@ -261,9 +261,11 @@ Snapshot
GetCatalogSnapshot
(
Oid
relid
)
{
/*
* Return historic snapshot if we're doing logical decoding, but
* return a non-historic, snapshot if we temporarily are doing up2date
* lookups.
* Return historic snapshot while we're doing logical decoding, so we can
* see the appropriate state of the catalog.
*
* This is the primary reason for needing to reset the system caches after
* finishing decoding.
*/
if
(
HistoricSnapshotActive
())
return
HistoricSnapshot
;
...
...
@@ -352,7 +354,7 @@ SetTransactionSnapshot(Snapshot sourcesnap, TransactionId sourcexid)
Assert
(
RegisteredSnapshots
==
0
);
Assert
(
FirstXactSnapshot
==
NULL
);
Assert
(
HistoricSnapshotActive
());
Assert
(
!
HistoricSnapshotActive
());
/*
* Even though we are not going to use the snapshot it computes, we must
...
...
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