[freenet-cvs] r19029 - trunk/freenet/src/freenet/store

Matthew Toseland toad at amphibian.dyndns.org
Sat Apr 5 13:46:22 UTC 2008


Sorry, forgot to mention this was a patch from Daniel Cheng as well.

On Saturday 05 April 2008 14:54, toad at freenetproject.org wrote:
> Author: toad
> Date: 2008-04-05 13:53:59 +0000 (Sat, 05 Apr 2008)
> New Revision: 19029
> 
> Modified:
>    trunk/freenet/src/freenet/store/RAMFreenetStore.java
> Log:
> RAMFreenetStore: Throw a KeyCollisionException if the data is different 
and !overwrite.
> BDBFS already does this, so we are making RAMFS a better approximation to 
the deployed behaviour.
> 
> Modified: trunk/freenet/src/freenet/store/RAMFreenetStore.java
> ===================================================================
> --- trunk/freenet/src/freenet/store/RAMFreenetStore.java	2008-04-05 13:51:28 
UTC (rev 19028)
> +++ trunk/freenet/src/freenet/store/RAMFreenetStore.java	2008-04-05 13:53:59 
UTC (rev 19029)
> @@ -90,6 +90,8 @@
>  					oldBlock.header = header;
>  					if(storeFullKeys)
>  						oldBlock.fullKey = fullKey;
> +				} else {
> +					throw new KeyCollisionException();
>  				}
>  				return;
>  			} else {
> 
> _______________________________________________
> cvs mailing list
> cvs at freenetproject.org
> http://emu.freenetproject.org/cgi-bin/mailman/listinfo/cvs
> 
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://emu.freenetproject.org/pipermail/cvs/attachments/20080405/e95ee534/attachment.pgp 


More information about the cvs mailing list