[
https://issues.apache.org/jira/browse/COUCHDB-1196?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Filipe Manana resolved COUCHDB-1196.
------------------------------------
Resolution: Fixed
Fix Version/s: 1.2
Applied to trunk.
Only removed the 'ok' return from terminate function. lists:foreach/1 returns
ok and also the return value of this function is in fact irrelevant.
Thanks again Andrey
> The server cannot terminate properly closing all the databases
> --------------------------------------------------------------
>
> Key: COUCHDB-1196
> URL: https://issues.apache.org/jira/browse/COUCHDB-1196
> Project: CouchDB
> Issue Type: Bug
> Components: Database Core
> Affects Versions: 1.2
> Reporter: Andrey Somov
> Priority: Minor
> Fix For: 1.2
>
> Attachments: patch-issue-1196.txt
>
> Original Estimate: 1h
> Remaining Estimate: 1h
>
> It looks like the values in the couch_dbs_by_name table are tuples of 2
> terms in couch_server.terminate():
> terminate(_Reason, _Srv) ->
> [couch_util:shutdown_sync(Pid) || {_, {Pid, _LruTime}} <-
> ets:tab2list(couch_dbs_by_name)],
> ok.
> But in the rest of the code the values are always 3-term-tuples:
> {opened, Pid, LruTime} or {opening, Opener, [Froms]}
> The patch is expected to solve the issue. All the tests pass.
> See also: http://thread.gmane.org/gmane.comp.db.couchdb.devel/15741
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira