Re: [freenet-dev] [freenet-cvs] r19567 - trunk/freenet/src/f…

Top Page
Author: Matthew Toseland
Date:  
To: devl
Subject: Re: [freenet-dev] [freenet-cvs] r19567 - trunk/freenet/src/freenet/store
Delete this message
Reply to this message
gpg: Signature made Wed Apr 30 18:35:02 2008 UTC using DSA key ID E43DA450
gpg: Good signature from "Matthew John Toseland <toad@amphibian.dyndns.org>"
On Saturday 26 April 2008 04:57, j16sdiz@??? wrote:
> Author: j16sdiz
> Date: 2008-04-26 03:57:34 +0000 (Sat, 26 Apr 2008)
> New Revision: 19567
>
> Modified:
> trunk/freenet/src/freenet/store/BerkeleyDBFreenetStore.java
> Log:
> use FileChannel.read()/write() in BDBFS
>

All good stuff, however:
- Don't use allocateDirect() unless you plan to keep the returned ByteBuffer
around for a long time. They are immobile and therefore hard to garbage
collect.
- ClosedChannelException, AsynchronousCloseException and
ClosedByInterruptException should be caught and cause a silent failure for a
smooth shutdown.