Record locking

Jay R. Ashworth jra at baylink.com
Wed May 26 10:31:43 PDT 2004


On Wed, Mar 31, 2004 at 10:24:27AM -0500, Bill Vermillion wrote:
> In an instance where things might stop, I never created the
> tracking number [similar to your order number] until the SAVE [eg
> EscEsc] was pressed.
> 
> I trapped for that key, and the save routine then retreived the
> correct number.  I did this cleaning up a site that would have many
> numbers missing when the previous programmer retreived a number as
> one of the first things they did, and then when the order was
> never completed, there was no order and the control file had been
> perivously incremented so that it appeared to have holes in the
> order number list.

I did that as well once, in some header detail code I'm rather proud
of; I created a temporary order number to bind everything together,
using the major and minor numbers of the tty device, times negative
one.  When they saved, I grabbed a new number and rewrote everything.
If they deleted out, I believe I just left everything there, though I
might have ripple deleted; it's been 8 years now; I forget.

Cheers,
- jra
-- 
Jay R. Ashworth                                                jra at baylink.com
Member of the Technical Staff     Baylink                             RFC 2100
The Suncoast Freenet         The Things I Think
Tampa Bay, Florida        http://baylink.pitas.com             +1 727 647 1274

        "They had engineers in my day, too."  -- Perry Vance Nelson


More information about the Filepro-list mailing list