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

Re: [PATCH v3] Fix O(n) runtime in cache lookup, part 1/2

From: Daniel Shahaf <d.s_at_daniel.shahaf.name>
Date: Tue, 27 Apr 2010 12:23:01 +0300 (Jerusalem Daylight Time)

Stefan Fuhrmann wrote on Tue, 27 Apr 2010 at 02:45 +0200:
> Philip Martin wrote:
> >
> > > + if (cache->partial_page == NULL)
> > > + {
> > > + /* You pinned too many entries. Fix that! */
> > > + svn_error_t *svn_warning = +
> > > svn_error_create(SVN_ERR_INPROCCACHE_OVERFLOW, +
> > > NULL,
> > > + _("Cache overflow. Too many entries
> > > pinned."));
> > > +
> > > + svn_handle_warning2(stderr, svn_warning, "svn-debug: ");
> > > + svn_error_clear (svn_warning);
> > >
> >
> > We don't want the libraries to use stderr.
> >
> I couldn't find an example for how to log debug messages.
> Can you give me a pointer?
>

svn_fs_set_warning_func()?

(and I note that an svn_cache__set_error_handler() already exists,
though is not exactly parallel)
Received on 2010-04-27 11:22:48 CEST

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