diff options
author | Marc G. Fournier <scrappy@hub.org> | 1996-10-11 03:22:59 +0000 |
---|---|---|
committer | Marc G. Fournier <scrappy@hub.org> | 1996-10-11 03:22:59 +0000 |
commit | 2663dfd94e48d4b9d834267b6f8cfbbe05d53665 (patch) | |
tree | 651b9788e4bc1467009d49d031ad8637d17b9e1d /src/backend/storage/lmgr/proc.c | |
parent | 97906ac697874192b19aebed391be49b07b12b02 (diff) |
I have written some patches to the postgres lock manager which allow the
use of long term cooperative locks managed by the user applications.
Submitted by: Massimo Dal Zotto <dz@cs.unitn.it>
Diffstat (limited to 'src/backend/storage/lmgr/proc.c')
-rw-r--r-- | src/backend/storage/lmgr/proc.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/backend/storage/lmgr/proc.c b/src/backend/storage/lmgr/proc.c index edba19c3192..6588f5cddc8 100644 --- a/src/backend/storage/lmgr/proc.c +++ b/src/backend/storage/lmgr/proc.c @@ -7,7 +7,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/storage/lmgr/proc.c,v 1.5 1996/08/01 05:11:33 scrappy Exp $ + * $Header: /cvsroot/pgsql/src/backend/storage/lmgr/proc.c,v 1.6 1996/10/11 03:22:59 scrappy 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.5 1996/08/01 05:11:33 scrappy Exp $ + * $Header: /cvsroot/pgsql/src/backend/storage/lmgr/proc.c,v 1.6 1996/10/11 03:22:59 scrappy Exp $ */ #include <sys/time.h> #ifndef WIN32 @@ -361,6 +361,10 @@ ProcKill(int exitStatus, int pid) ProcReleaseSpins(proc); LockReleaseAll(1,&proc->lockQueue); +#ifdef USER_LOCKS + LockReleaseAll(0,&proc->lockQueue); +#endif + /* ---------------- * get off the wait queue * ---------------- |