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

Re: [Issue 639] - introduce svn_filesize_t

From: Greg Hudson <ghudson_at_MIT.EDU>
Date: 2003-03-18 23:45:03 CET

On Tue, 2003-03-18 at 17:39, Branko Èibej wrote:
> I think we wouldn't get this far if the FS is corrupt. The only way I
> can imagine this happening is if SVN_STREAM_CHUNK_SIZE >=
> SVN_MAX_OBJECT_SIZE, which should never happen. I put in the second
> assert as an extra check to make sure that the cast to apr_size_t
> doesn't lose data.

Okay. As long as they're assertions about code invariants and not file
invariants, that's fine.

> >I didn't see any other potential problems in my read-through.
> >
> >
> These are potential problems?

Well, potentially. :) It's not okay to use assert() when checking the
consistency of on-disk data, because the Subversion code should never
ever abort in the absence of bugs. But it sounds like that's not an
issue here.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Mar 18 23:45:50 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.