Author: toad
Date: 2009-03-05 19:42:49 +0000 (Thu, 05 Mar 2009)
New Revision: 25896

Modified:
   branches/db4o/freenet/src/freenet/support/io/PersistentBlobTempBucket.java
Log:
Check shadow before read only


Modified: 
branches/db4o/freenet/src/freenet/support/io/PersistentBlobTempBucket.java
===================================================================
--- branches/db4o/freenet/src/freenet/support/io/PersistentBlobTempBucket.java  
2009-03-05 19:42:23 UTC (rev 25895)
+++ branches/db4o/freenet/src/freenet/support/io/PersistentBlobTempBucket.java  
2009-03-05 19:42:49 UTC (rev 25896)
@@ -137,8 +137,8 @@
 
        public OutputStream getOutputStream() throws IOException {
                if(freed) throw new IOException("Already freed");
+               if(shadow) throw new IOException("Shadow");
                if(readOnly) throw new IOException("Read-only");
-               if(shadow) throw new IOException("Shadow");
                final FileChannel channel = factory.channel;
                
                return new OutputStream() {

_______________________________________________
cvs mailing list
[email protected]
http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs

Reply via email to