couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Filipe David Manana <>
Subject Re: couch_server.erl - is couch_dbs_by_name table correclty used in terminate() function ?
Date Wed, 15 Jun 2011 11:03:02 GMT
On Wed, Jun 15, 2011 at 11:54 AM, Andrey Somov
<> wrote:
> The bug has been introduced more then a year ago (02-Apr-2010) in revision
> 930363 with the comment "Deterministic/synchronous shutdown code"
> Since no one is complaining may be the code is redundant and it can be
> safely removed ?
> (the less code the better)

I think it's better to do the explicit synchronous shutdown. It
ensures any current database writes are finished before a restart (as
triggered by POST to /_restart/) complete.
Just try it out, run all the tests (Etap and JavaScript) and see if all pass.


> -
> Andrey

Filipe David Manana,,

"Reasonable men adapt themselves to the world.
 Unreasonable men adapt the world to themselves.
 That's why all progress depends on unreasonable men."

View raw message