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
829f12e2
Commit
829f12e2
authored
Jun 24, 2017
by
Simon Riggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Revert
1f30295e
Reported-by: Tom Lane
parent
d1fcc622
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
3 deletions
+8
-3
src/backend/utils/time/snapmgr.c
src/backend/utils/time/snapmgr.c
+8
-3
No files found.
src/backend/utils/time/snapmgr.c
View file @
829f12e2
...
@@ -2076,6 +2076,14 @@ SerializeSnapshot(Snapshot snapshot, char *start_address)
...
@@ -2076,6 +2076,14 @@ SerializeSnapshot(Snapshot snapshot, char *start_address)
serialized_snapshot
.
whenTaken
=
snapshot
->
whenTaken
;
serialized_snapshot
.
whenTaken
=
snapshot
->
whenTaken
;
serialized_snapshot
.
lsn
=
snapshot
->
lsn
;
serialized_snapshot
.
lsn
=
snapshot
->
lsn
;
/*
* Ignore the SubXID array if it has overflowed, unless the snapshot was
* taken during recovey - in that case, top-level XIDs are in subxip as
* well, and we mustn't lose them.
*/
if
(
serialized_snapshot
.
suboverflowed
&&
!
snapshot
->
takenDuringRecovery
)
serialized_snapshot
.
subxcnt
=
0
;
/* Copy struct to possibly-unaligned buffer */
/* Copy struct to possibly-unaligned buffer */
memcpy
(
start_address
,
memcpy
(
start_address
,
&
serialized_snapshot
,
sizeof
(
SerializedSnapshotData
));
&
serialized_snapshot
,
sizeof
(
SerializedSnapshotData
));
...
@@ -2092,9 +2100,6 @@ SerializeSnapshot(Snapshot snapshot, char *start_address)
...
@@ -2092,9 +2100,6 @@ SerializeSnapshot(Snapshot snapshot, char *start_address)
* snapshot taken during recovery; all the top-level XIDs are in subxip as
* snapshot taken during recovery; all the top-level XIDs are in subxip as
* well in that case, so we mustn't lose them.
* well in that case, so we mustn't lose them.
*/
*/
if
(
serialized_snapshot
.
suboverflowed
&&
!
snapshot
->
takenDuringRecovery
)
serialized_snapshot
.
subxcnt
=
0
;
if
(
serialized_snapshot
.
subxcnt
>
0
)
if
(
serialized_snapshot
.
subxcnt
>
0
)
{
{
Size
subxipoff
=
sizeof
(
SerializedSnapshotData
)
+
Size
subxipoff
=
sizeof
(
SerializedSnapshotData
)
+
...
...
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