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
19ba2292
Commit
19ba2292
authored
27 years ago
by
Bruce Momjian
Browse files
Options
Downloads
Patches
Plain Diff
Fix for locking problems an dpriority.
parent
f0da7129
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/backend/storage/lmgr/proc.c
+5
-4
5 additions, 4 deletions
src/backend/storage/lmgr/proc.c
with
5 additions
and
4 deletions
src/backend/storage/lmgr/proc.c
+
5
−
4
View file @
19ba2292
...
...
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/storage/lmgr/proc.c,v 1.3
1
1998/02/
19 15:04:45
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/storage/lmgr/proc.c,v 1.3
2
1998/02/
24 19:58:26
momjian Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -46,7 +46,7 @@
* This is so that we can support more backends. (system-wide semaphore
* sets run out pretty fast.) -ay 4/95
*
* $Header: /cvsroot/pgsql/src/backend/storage/lmgr/proc.c,v 1.3
1
1998/02/
19 15:04:45
momjian Exp $
* $Header: /cvsroot/pgsql/src/backend/storage/lmgr/proc.c,v 1.3
2
1998/02/
24 19:58:26
momjian Exp $
*/
#include
<sys/time.h>
#include
<unistd.h>
...
...
@@ -451,7 +451,7 @@ ProcSleep(PROC_QUEUE *waitQueue,
int
prio
,
LOCK
*
lock
)
{
int
i
=
0
;
int
i
;
PROC
*
proc
;
struct
itimerval
timeval
,
dummy
;
...
...
@@ -481,7 +481,8 @@ ProcSleep(PROC_QUEUE *waitQueue,
proc
=
(
PROC
*
)
MAKE_PTR
(
waitQueue
->
links
.
prev
);
/* If we are a reader, and they are writers, skip past them */
while
(
i
++
<
waitQueue
->
size
&&
proc
->
prio
>
prio
)
for
(
i
=
0
;
i
<
waitQueue
->
size
&&
proc
->
prio
>
prio
;
i
++
)
proc
=
(
PROC
*
)
MAKE_PTR
(
proc
->
links
.
prev
);
/* The rest of the queue is FIFO, with readers first, writers last */
...
...
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