• exec/load/sbbslist_lib.js

    From rswindell@VERT to CVS commit on Wednesday, March 20, 2019 13:15:45
    exec/load sbbslist_lib.js 1.22 1.23
    Update of /cvsroot/sbbs/exec/load
    In directory cvs:/tmp/cvs-serv32226

    Modified Files:
    sbbslist_lib.js
    Log Message:
    Use a lock file (sbbslist.json.lock) to protect the database (sbbslist.json) from corruption during concurrent operations. Although the list file is not open shareable, I was observing corruption on Vertrauen when multiple sbbslist tasks (e.g. verification and maintenance) were running concurrently on different systems. The .lock file method is crude, but is working to protect the list from concurrent opens of any kind (read or write).



    ---
    þ Synchronet þ Vertrauen þ Home of Synchronet þ [vert/cvs/bbs].synchro.net