It is possible for the node to choose a different edition number than the one 
you specify if you insert as a USK. It will automatically skip editions that 
are already occupied. Do you use this?

On Wednesday 12 March 2008 06:06, dieppe at freenetproject.org wrote:
> Author: dieppe
> Date: 2008-03-12 06:06:56 +0000 (Wed, 12 Mar 2008)
> New Revision: 18483
> 
> Modified:
>    
trunk/apps/thingamablog/src/net/sf/thingamablog/transport/FCPTransport.java
> Log:
> In case the publish process fails, we revert the edition number.
> 
> 
> 
> Modified: 
trunk/apps/thingamablog/src/net/sf/thingamablog/transport/FCPTransport.java
> ===================================================================
> --- 
trunk/apps/thingamablog/src/net/sf/thingamablog/transport/FCPTransport.java     
2008-03-12 06:04:40 UTC (rev 18482)
> +++ 
trunk/apps/thingamablog/src/net/sf/thingamablog/transport/FCPTransport.java     
2008-03-12 06:06:56 UTC (rev 18483)
> @@ -183,9 +183,11 @@
>                  finished = success || "PutFailed".equals(messageName) || 
messageName.endsWith("Error");
>              }            
>          }
> -        // If the publish has been made, we update the edition number to 
the current edition
> +        // If the publish has been made, we update the edition number to 
the current edition, otherwise, we revert it
>          if(finalURI != null){
>              edition = 
Integer.parseInt(finalURI.substring(finalURI.length()-1));
> +        } else {
> +            edition--;
>          }
>          return success;
>      }
> 
> _______________________________________________
> 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: 
<https://emu.freenetproject.org/pipermail/devl/attachments/20080313/6edb404e/attachment.pgp>

Reply via email to