Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
postgres-lambda-diff
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jakob Huber
postgres-lambda-diff
Commits
ddc5bc95
Commit
ddc5bc95
authored
24 years ago
by
Tom Lane
Browse files
Options
Downloads
Patches
Plain Diff
When we add 'waiting' to the ps_status display, there should be a
space in front of it. Improve comments a little.
parent
934126b5
No related branches found
Branches containing commit
Tags
REL8_3_RC1
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/backend/storage/lmgr/lock.c
+6
-5
6 additions, 5 deletions
src/backend/storage/lmgr/lock.c
with
6 additions
and
5 deletions
src/backend/storage/lmgr/lock.c
+
6
−
5
View file @
ddc5bc95
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/storage/lmgr/lock.c,v 1.8
6
2001/03/1
4 18:24:32 momjian
Exp $
* $Header: /cvsroot/pgsql/src/backend/storage/lmgr/lock.c,v 1.8
7
2001/03/1
8 20:13:13 tgl
Exp $
*
* NOTES
* Outside modules can create a lock table and acquire/release
...
...
@@ -934,11 +934,11 @@ WaitOnLock(LOCKMETHOD lockmethod, LOCKMODE lockmode,
old_status
=
pstrdup
(
get_ps_display
());
new_status
=
(
char
*
)
palloc
(
strlen
(
old_status
)
+
10
);
strcpy
(
new_status
,
old_status
);
strcat
(
new_status
,
"waiting"
);
strcat
(
new_status
,
"
waiting"
);
set_ps_display
(
new_status
);
/*
* NOTE: Think not to put any
lock
state cleanup after the call to
* NOTE: Think not to put any
shared-
state cleanup after the call to
* ProcSleep, in either the normal or failure path. The lock state
* must be fully set by the lock grantor, or by HandleDeadLock if we
* give up waiting for the lock. This is necessary because of the
...
...
@@ -946,7 +946,9 @@ WaitOnLock(LOCKMETHOD lockmethod, LOCKMODE lockmode,
* after someone else grants us the lock, but before we've noticed it.
* Hence, after granting, the locktable state must fully reflect the
* fact that we own the lock; we can't do additional work on return.
*
* Contrariwise, if we fail, any cleanup must happen in xact abort
* processing, not here, to ensure it will also happen in the cancel/die
* case.
*/
if
(
ProcSleep
(
lockMethodTable
,
...
...
@@ -958,7 +960,6 @@ WaitOnLock(LOCKMETHOD lockmethod, LOCKMODE lockmode,
* We failed as a result of a deadlock, see HandleDeadLock().
* Quit now. Removal of the holder and lock objects, if no longer
* needed, will happen in xact cleanup (see above for motivation).
*
*/
LOCK_PRINT
(
"WaitOnLock: aborting on lock"
,
lock
,
lockmode
);
SpinRelease
(
lockMethodTable
->
ctl
->
masterLock
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment