Gossamer Forum
Home : Products : Links 2.0 : Discussions :

Simultaneous Database Builds Dangerous?

Quote Reply
Simultaneous Database Builds Dangerous?
We are currently evaluating the use of Links for an upcoming site we're building and ran into an interesting problem. Two people were adding links and building the site using 'Build All' when the links database became corrupted and most of the links were lost (luckily we had a backup!). Does Links assume that only one person will be building the database? Does the software support simultaneous database builds? I looked at nph-build.cgi and discovered that the links.db file is actually built into a temporary file first, then copied to the real file. The copy doesn't seem to be protected by any sort of locking code. Does the Perl open() function take care of this by default?
Subject Author Views Date
Thread Simultaneous Database Builds Dangerous? Andrew Chasin 1625 Apr 4, 1999, 8:27 PM
Post Re: Simultaneous Database Builds Dangerous?
Alex 1551 Apr 6, 1999, 9:50 AM