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

Re: svn commit: r30827 - in trunk/subversion: svnserve tests/cmdline

From: <epg_at_google.com>
Date: Tue, 29 Apr 2008 12:10:44 -0700

Karl Fogel <kfogel_at_red-bean.com> writes:

> epg_at_google.com writes:
> >> /* The lock may have become defunct after the commit, so ignore such
> >> - errors.
> >> -
> >> - ### If we ever write a logging facility for svnserve, this
> >> - would be a good place to log an error before clearing
> >> - it. */
> >> - svn_error_clear(svn_repos_fs_unlock(sb->repos, full_path, token,
> >> - FALSE, pool));
> >> + errors. */
> >> + err = svn_repos_fs_unlock(sb->repos, full_path, token,
> >> + FALSE, pool);
> >> + log_server_error(err, sb, conn, iterpool);
> >> + svn_error_clear(err);
> >
> > Why don't we use iterpool in that svn_repos_fs_unlock call? I
> > left it using pool because I wasn't sure.
>
> Looks to me like iterpool would be fine. The code to
> svn_repos_fs_unlock() just uses the pool for hook-running and unlocking;
> everything stays within the scope of that call, so there shouldn't be
> any lifetime issues.

r30841, thanks

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: dev-help_at_subversion.tigris.org
Received on 2008-04-29 21:11:07 CEST

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

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