On Fri, 2007-06-08 at 17:51 -0400, Jim Fulton wrote:
> Wouldn't it be a lot simpler to simply sleep less?  It sounds like  
> sleeping .1 would speed it up by a factor of 10. :)

Yes, that's true. I was worried that this would result in a '.' being
printed to the screen 10 times a second in some failure cases: during
our migration to zdctl, if we had some databases started otherwise then
when starting them with zdctl it resulted in '.' being printed to the
screen once per second indefinitely. This would be far more painful if
the screen was being literally flooded with them...

But, I see that the latest zdaemon only tries for 10 seconds and then
gives up anyway, which would avoid this problem. So you could either
change the sleep to 0.1s and increase the "n > 10" check to "n > 100",
or you might consider something like the attached patch (applies against

Daniel Drake
Brontes Technologies, A 3M Company

For more information about ZODB, see the ZODB Wiki:

ZODB-Dev mailing list  -  ZODB-Dev@zope.org

Reply via email to