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

Re: Compressed text-base patch

From: <rbb_at_rkbloom.net>
Date: 2003-04-28 22:44:00 CEST

On 28 Apr 2003, Philip Martin wrote:

> As to why your commits fail, the problem is your use of
> apr_file_data_get/apr_file_data_set. I do not know whether your
> expectations are wrong, or whether the APR implementation is wrong,
> but it appears that the data gets associated with the pool used by the
> file, rather than with the file itself. This causes problems when two
> files use the same pool.

This is the way that all userdata works in APR. All APR types have a
pool, which implements the userdata. So, if you have multiple APR objects
sharing a single pool, and you try to set userdata for all of them using
the same key, you will overwrite your data. Your key must be unique for
the pool, not the variable.

Ryan

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Apr 28 22:29:07 2003

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.