[Box Backup-dev] COMMIT r843 - box/chris/retry-debug/bin/bbstored

Chris Wilson boxbackup-dev@fluffy.co.uk
Thu, 31 Aug 2006 13:13:22 +0100 (BST)


Hi Ben,

> Probably not important as you can't use the server for real, but this 
> stops the server from being able to detect and prevent two writeable 
> connections at once. Should be documented somewhere at least, in 
> comments here. I presume the store is marked as "for tests only" on 
> Win32?

Yes, it's actually impossible with the current design, since there is no 
fork() on Windows and the shared variable make it dangerous to use 
threads instead. So the server runs in a single process with synchronous 
housekeeping. But I could reinstate the locks if you prefer, since they 
don't actually do any harm.

Cheers, Chris.
-- 
_ ___ __     _
  / __/ / ,__(_)_  | Chris Wilson <0000 at qwirx.com> - Cambs UK |
/ (_/ ,\/ _/ /_ \ | Security/C/C++/Java/Perl/SQL/HTML Developer |
\ _/_/_/_//_/___/ | We are GNU-free your mind-and your software |