[Box Backup-dev] Re: First official Win32 release

Ben Summers boxbackup-dev@fluffy.co.uk
Sun, 29 Jan 2006 12:19:58 +0000


On 28 Jan 2006, at 16:12, Gary wrote:

>>> -- You need to delete the stored file as soon as it's  
>>> been read in. Consider what will happen if the process
>>> aborts, and is restarted.
>
> The discrepancy between the state file and the remote server would  
> be, I believe, corrected during
> the next run, when a set of directories is re-scanned by the  
> client. Deleting the state file would
> force a complete re-cache from server on the next run, instead of  
> an "incremental" update of the
> state.

Yes, it should work that way, but it feels a bit "dangerous" to me. I  
would prefer that we took the conservative option and rescanned from  
scratch if there were problems. (Especially if the problems were  
caused by the contents of the saved state.)


>>> I see a lot of similarities between Archive and Protocol.
>>> Using Protocol with
>>> auto-generated definitions would catch coding errors later.
>
> I did not catch the meaning here. Why exactly is the Protocol  
> similar to Archive? They do not
> serve the same purpose, as far as I remember.

They both have lots of functions to write simple data types to streams.

Ben