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

[Locking] Proposal to change ra_lock and ra_unlock to take lists of lock tokens

From: Brian W. Fitzpatrick <fitz_at_collab.net>
Date: 2005-02-24 22:36:02 CET

The Issue At Hand:

With the current locking design, my only recourse in a situation where
we need to unlock (or lock) multiple files is to pass each lock token
that we discover to svn_ra_unlock (or svn_ra_lock) and send each
lock/unlock request over the ra layer one at a time. While simple
enough, this is extremely inefficient.

The Proposed Solution:

After discussing this with sussman and cmpilato, I propose that we
modify svn_ra_lock and svn_ra_unlock to take a list of lock tokens.
That way, each ra layer can deal with the tokens as efficiently or
inefficiently as necessary. Sussman's already got some ideas WRT ra_dav
using POST requests instead of LOCK and UNLOCK requests, and the other
layers can just shoot the whole list at the server in one request.

Thoughts?

-Fitz

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Feb 24 22:36:55 2005

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