[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: Branko ─îibej <brane_at_wandisco.com>
Date: Fri, 10 Aug 2012 05:41:00 +0200

On 10.08.2012 01:15, Philip Martin wrote:
> Philip Martin <philip.martin_at_wandisco.com> writes:
>
>> 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.
> I think it might also work with a rollback instead of a commit since
> exlusive locking mode doesn't release write locks until the database is
> closed.

You're aware that your recipe will lock out readers of the database,
too? I thought the idea was to make the repository read-only, not
inaccessible.

-- Brane

-- 
Certified & Supported Apache Subversion Downloads:
http://www.wandisco.com/subversion/download
Received on 2012-08-10 05:41:46 CEST

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