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
4cd4ed0c
Commit
4cd4ed0c
authored
May 07, 2005
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix case in which a debug printout would print already-pfreed data.
parent
8a9e3291
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
5 deletions
+7
-5
src/backend/access/transam/multixact.c
src/backend/access/transam/multixact.c
+7
-5
No files found.
src/backend/access/transam/multixact.c
View file @
4cd4ed0c
...
...
@@ -31,7 +31,7 @@
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $PostgreSQL: pgsql/src/backend/access/transam/multixact.c,v 1.
2 2005/05/03 19:42:40
tgl Exp $
* $PostgreSQL: pgsql/src/backend/access/transam/multixact.c,v 1.
3 2005/05/07 18:14:25
tgl Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -310,9 +310,9 @@ MultiXactIdExpand(MultiXactId multi, TransactionId xid)
{
if
(
TransactionIdEquals
(
members
[
i
],
xid
))
{
pfree
(
members
);
debug_elog4
(
DEBUG2
,
"Expand: %u is already a member of %u"
,
xid
,
multi
);
pfree
(
members
);
return
multi
;
}
}
...
...
@@ -376,8 +376,8 @@ MultiXactIdIsRunning(MultiXactId multi)
{
if
(
TransactionIdEquals
(
members
[
i
],
myXid
))
{
pfree
(
members
);
debug_elog3
(
DEBUG2
,
"IsRunning: I (%d) am running!"
,
i
);
pfree
(
members
);
return
true
;
}
}
...
...
@@ -391,14 +391,15 @@ MultiXactIdIsRunning(MultiXactId multi)
{
if
(
TransactionIdIsInProgress
(
members
[
i
]))
{
pfree
(
members
);
debug_elog4
(
DEBUG2
,
"IsRunning: member %d (%u) is running"
,
i
,
members
[
i
]);
pfree
(
members
);
return
true
;
}
}
pfree
(
members
);
debug_elog3
(
DEBUG2
,
"IsRunning: %u is not running"
,
multi
);
return
false
;
...
...
@@ -646,6 +647,7 @@ CreateMultiXactId(int nxids, TransactionId *xids)
/* Store the new MultiXactId in the local cache, too */
mXactCachePut
(
multi
,
nxids
,
xids
);
debug_elog2
(
DEBUG2
,
"Create: all done"
);
return
multi
;
...
...
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