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

Re: Perl bindings not releasing db lock?

From: Toby Johnson <toby_at_etjohnson.us>
Date: 2005-06-16 15:16:27 CEST

Gee-clough, Aaron (NIH/CIT) wrote:

>$ctx = SVN::Client->new()
>while (1)
>{
> $ctx->update( $working_dir )
> Read through files in repos, take actions based on those files
>(possibly including modifying them)
> $ctx->commit( $working_dir )
> $ctx->cleanup ( $working_dir )
> sleep(60)
>}
>
>My question: is there some way to force the bindings to release that lock
>file? $ctx->cleanup() isn't doing that.
>
>
I would try instantiating a new $ctx inside the while loop, instead of
using the same object forever. If that doesn't work, another workaround
might be to call this script from cron every minute instead of using the
sleep(60).

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Thu Jun 16 15:23:06 2005

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.