[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: svn_fs/svn_repo repository lock API

From: Philip Martin <philip.martin_at_wandisco.com>
Date: Thu, 09 Aug 2012 23:59:14 +0100

Stefan Fuhrmann <stefan.fuhrmann_at_wandisco.com> writes:

> On Thu, Aug 9, 2012 at 10:06 AM, Philip Martin
> <philip.martin_at_wandisco.com> wrote:
>> The freeze-lock is similar to a write-lock: it exists for the duration
>> of the process that creates it.
> I see. Makes sense. Will it also work for the sqlite lock?
> (you mentioned that you would like to lock repcache.db
> as well).

Yes, I think so. The process executes something like

   pragma locking_mode = exclusive;
   begin exclusive transaction;
   commit transaction;

and then the lock persists until the database connection is closed or
the process exits.

Certified & Supported Apache Subversion Downloads:
Received on 2012-08-10 00:59:50 CEST

This is an archived mail posted to the Subversion Dev mailing list.