Command-line option for changing block-on-recover behavior considered unnecessary.
From: Eric S. Raymond <esr_at_thyrsus.com>
Date: 2004-08-30 17:19:32 CEST
Mark Benedetto King <mbk@lowlatency.com>:
That wouldn't solve the problem, just move the debate to "which mode
Unix programmers have a reflex to make behavior configurable when there is
However...making things configurable should not be a substitute for thinking
In this case, I think we can avoid having an extra command-line option fairly
So, here's a strawman design that I think might satisfy the run-to-completion
1. If svn recover sees on startup that it's going to hit a lock, it says
The database is locked by processes xxx, yyy, zzz
Note: listing the blocking processes is not a frill or an option,
2. When it gets the lock, it frobs the terminal mode so DEL and QUIT
Lock acquired, interrupts will be ignored until completion.
Let's look at how this stacks up against the current proposals as
1. What we have now: No diagnostic, blocking lock attempt
It's better than the current state of affairs. Anything would be.
2. mbk's alternative: Diagnostic if we can't get lock, then block
My proposal blocks, but it blocks soft -- it can be interrupted
3. Greg Hudson's alternative: Fail if we can't get lock
In the interactive case, I don't think there is much to be gained
But the reverse also applies -- it's easy enough to re-invoke the tool
Which design is better depends on how much value you think there is
4. Other alternative: Diagnostic if we can't get lock, then block,
This is what I proposed above. I think it's a clear improvement over
However, my real point is that adding a command-line option to control
In fact, now that I think about it, I may like Greg's proposal
I promised to address the non-interactive case. I think Mark is right
But let's ask the next question. If recover is going to be run without
Probably not. So there may be a good argument for an option after all --
-f, --force
If this option is specified and svnadmin detects database lockers on recovery
-- Eric S. Raymond --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org For additional commands, e-mail: dev-help@subversion.tigris.orgReceived on Mon Aug 30 17:40:20 2004 |
This is an archived mail posted to the Subversion Dev mailing list.
This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.