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
f1e57a4e
Commit
f1e57a4e
authored
Nov 29, 2012
by
Simon Riggs
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup VirtualXact at end of Hot Standby.
parent
7a2fe9bd
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
2 deletions
+5
-2
src/backend/storage/ipc/standby.c
src/backend/storage/ipc/standby.c
+3
-0
src/backend/storage/lmgr/lock.c
src/backend/storage/lmgr/lock.c
+1
-2
src/include/storage/lock.h
src/include/storage/lock.h
+1
-0
No files found.
src/backend/storage/ipc/standby.c
View file @
f1e57a4e
...
...
@@ -105,6 +105,9 @@ ShutdownRecoveryTransactionEnvironment(void)
/* Release all locks the tracked transactions were holding */
StandbyReleaseAllLocks
();
/* Cleanup our VirtualTransaction */
VirtualXactLockTableCleanup
();
}
...
...
src/backend/storage/lmgr/lock.c
View file @
f1e57a4e
...
...
@@ -210,7 +210,6 @@ static bool FastPathUnGrantRelationLock(Oid relid, LOCKMODE lockmode);
static
bool
FastPathTransferRelationLocks
(
LockMethod
lockMethodTable
,
const
LOCKTAG
*
locktag
,
uint32
hashcode
);
static
PROCLOCK
*
FastPathGetRelationLockEntry
(
LOCALLOCK
*
locallock
);
static
void
VirtualXactLockTableCleanup
(
void
);
/*
* To make the fast-path lock mechanism work, we must have some way of
...
...
@@ -3791,7 +3790,7 @@ VirtualXactLockTableInsert(VirtualTransactionId vxid)
* Check whether a VXID lock has been materialized; if so, release it,
* unblocking waiters.
*/
static
void
void
VirtualXactLockTableCleanup
()
{
bool
fastpath
;
...
...
src/include/storage/lock.h
View file @
f1e57a4e
...
...
@@ -544,6 +544,7 @@ extern void DumpAllLocks(void);
/* Lock a VXID (used to wait for a transaction to finish) */
extern
void
VirtualXactLockTableInsert
(
VirtualTransactionId
vxid
);
extern
void
VirtualXactLockTableCleanup
(
void
);
extern
bool
VirtualXactLock
(
VirtualTransactionId
vxid
,
bool
wait
);
#endif
/* LOCK_H */
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