Article View: bionet.software.acedb
Article #2835Re: Write locks in Acedb
From: Richard Durbin
Date: Thu, 23 Sep 1993 18:20
Date: Thu, 23 Sep 1993 18:20
23 lines
1777 bytes
1777 bytes
It is clear that semaphores are inappropriate for ACEDB, since they are machine specific, and these days people almost always run in a NFS network environment. In fact I always disable them by setting SEM = 0! There is in fact a lock file operating (database/lock.wrm), but that has problems if a program dies ungracefully without removing the lockfile. For that reason ACEDB puts up a warning explanation if the lock file is set, but allows you to override it. I understood that there is an advisory record locking mechanism that works across NFS, breaks the lock when the locking process dies, and even handles remote disk server downs well. This seems to me a good candidate to replace semaphores. Is the problem that it requires lockd, which Henry says is not always available? Even if so, we could use this, with the overidable lock file as a backup. The history of the code that manages all this (session.c) is that it is old and has had a number of solutions layered on each other. I apologise for the mess. Cleanups guaranteed to compile and work on all machines would be appreciated. Richard
Technical Details
Message-ID:
<1993Sep23.182732.1681@gserv1.dl.ac.uk>Path:
arc1-ca.pugleaf.net!gmd.de!Germany.EU.net!mcsun!uknet!doc.ic.ac.uk!daresbury!daresbury!newsShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f6d40,d5cf6c0f3faa5ab0 X-Google-Attributes: gidf6d40,public X-Google-ArrivalTime: 1993-09-23 14:02:42 PST Newsgroups: bionet.software.acedb Path: arc1-ca.pugleaf.net!gmd.de!Germany.EU.net!mcsun!uknet!doc.ic.ac.uk!daresbury!daresbury!news From: rd@uk.ac.cam.mrc-lmb (Richard Durbin) Subject: Re: Write locks in Acedb Message-ID: <1993Sep23.182732.1681@gserv1.dl.ac.uk> Precedence: first-class Sender: list-admin@daresbury.ac.uk Original-To: acedb@uk.ac.daresbury, hcobb@fly2.berkeley.edu Distribution: bionet Date: Thu, 23 Sep 1993 18:20:03 GMT Original-Cc: mieg@ppsw.cam.ac.uk Lines: 23