[spambayes-dev] A new and altogether different bsddb breakage
Barry Warsaw
barry at python.org
Thu Dec 18 10:10:22 EST 2003
On Thu, 2003-12-18 at 10:01, Kenny Pitt wrote:
> This seems very clear that using full transactional mode does not
> protect you from DbRunRecovery errors.
True, but it makes them rarer.
> I wonder if the only real solution is to run recovery when opening the
> database. This should be easy for the Outlook add-in, sb_server, etc.
> where a single, long-running process performs all database access (just
> specify the DB_RECOVER flag when opening the environment). Running
> recovery requires that only one thread in one process has access to the
> database environment until recovery is complete. This might be harder
> to accomplish for apps such as sb_filter that could be run as multiple
> simultaneous processes.
In all the BDB apps I've written, I always pass the DB_RECOVER flag to
the open call. Except for coordinating the above, it's harmless if
recovery doesn't need to happen.
-Barry
More information about the spambayes-dev
mailing list