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
66b09849
Commit
66b09849
authored
Jun 18, 2005
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Dept. of second thoughts: regular COMMIT deletes deletable files before
releasing locks, so COMMIT PREPARED should too.
parent
25f89161
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
7 deletions
+11
-7
src/backend/access/transam/twophase.c
src/backend/access/transam/twophase.c
+11
-7
No files found.
src/backend/access/transam/twophase.c
View file @
66b09849
...
...
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/access/transam/twophase.c,v 1.
1 2005/06/17 22:32:42
tgl Exp $
* $PostgreSQL: pgsql/src/backend/access/transam/twophase.c,v 1.
2 2005/06/18 05:21:09
tgl Exp $
*
* NOTES
* Each global transaction is associated with a global transaction
...
...
@@ -1114,13 +1114,11 @@ FinishPreparedTransaction(char *gid, bool isCommit)
*/
gxact
->
valid
=
false
;
if
(
isCommit
)
ProcessRecords
(
bufptr
,
xid
,
twophase_postcommit_callbacks
);
else
ProcessRecords
(
bufptr
,
xid
,
twophase_postabort_callbacks
);
/*
* We also have to remove any files that were supposed to be dropped.
* We have to remove any files that were supposed to be dropped.
* For consistency with the regular xact.c code paths, must do this
* before releasing locks, so do it before running the callbacks.
*
* NB: this code knows that we couldn't be dropping any temp rels ...
*/
if
(
isCommit
)
...
...
@@ -1134,6 +1132,12 @@ FinishPreparedTransaction(char *gid, bool isCommit)
smgrdounlink
(
smgropen
(
abortrels
[
i
]),
false
,
false
);
}
/* And now do the callbacks */
if
(
isCommit
)
ProcessRecords
(
bufptr
,
xid
,
twophase_postcommit_callbacks
);
else
ProcessRecords
(
bufptr
,
xid
,
twophase_postabort_callbacks
);
pgstat_count_xact_commit
();
/*
...
...
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