[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: Gee-clough, Aaron (NIH/CIT) <geecla_at_mail.nih.gov>
Date: 2005-06-16 15:41:10 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).

Toby,
        Thanks. I tried instantiating a new $ctx within the while loop and
then undef'ing it just before the sleep, but that didn't help. Is this a
bug that I should report to the devs? (In the meantime, I'll go with the
cron version.)

Thanks.

Aaron
------------------
Aaron Gee-Clough
DNST/CIT/NEB/NSS
Contractor. Geek.

---------------------------------------------------------------------
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:44:54 2005

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