subversion-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Branko ─îibej <br...@wandisco.com>
Subject Re: svn_fs/svn_repo repository lock API
Date Fri, 10 Aug 2012 03:41:00 GMT
On 10.08.2012 01:15, Philip Martin wrote:
> Philip Martin <philip.martin@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


Mime
View raw message