On 6/14/2010 4:20 PM, Stefan Fritsch wrote:
> 
> But I am not sure what introducing a new element in struct 
> apr_bucket_file would mean for ABI compatibility. On the one hand, 
> apr_bucket_file is public, on the other hand, there are functions like 
> apr_bucket_file_create and apr_bucket_file_enable_mmap. Would adding 
> an element at the end be ok for apr-util 1.4, or would that only be 
> possible in 2.0?

We could create a new apr_bucket_file_closing flavor, but no.  You can't
alter the public structures until 2.0.  I really don't recall why these
internals were exposed, but this does demonstrate that might have been
a bad idea ;-)

As far as changing the structure itself, I wouldn't start creating two
ints when it's simple to change can_mmap to a bit flag, likewise 'should
be closed'.  But you are thinking of marking every bucket for this file
with this flag?

I'm wondering if this isn't actually a more general problem that would
be better solved with a broader hook-on-refcount==0 entity?

Reply via email to