No title Revision 346438653363 (Mon Jun 13 2011 at 09:57) - Diff Link to this snippet: https://friendpaste.com/2VZvViEvWugHt4TmHFep0M Embed: manni perldoc borland colorful default murphy trac fruity autumn bw emacs pastie friendly Show line numbers Wrap lines 12345678910111213141516171819202122232425262728diff --git a/src/couchdb/couch_api_wrap.erl b/src/couchdb/couch_api_wrap.erlindex 5d9c673..aa481c7 100644--- a/src/couchdb/couch_api_wrap.erl+++ b/src/couchdb/couch_api_wrap.erl@@ -104,7 +104,7 @@ db_close(#httpdb{httpc_pool = Pool}) -> unlink(Pool), ok = couch_httpc_pool:stop(Pool); db_close(DbName) ->- couch_db:close(DbName).+ catch couch_db:close(DbName). get_db_info(#httpdb{} = Db) ->diff --git a/src/couchdb/couch_replicator.erl b/src/couchdb/couch_replicator.erlindex aca2fca..c559c91 100644--- a/src/couchdb/couch_replicator.erl+++ b/src/couchdb/couch_replicator.erl@@ -478,7 +478,9 @@ terminate(Reason, State) -> terminate_cleanup(State) -> couch_task_status:update("Finishing"), stop_db_compaction_notifier(State#rep_state.source_db_compaction_notifier),- stop_db_compaction_notifier(State#rep_state.target_db_compaction_notifier).+ stop_db_compaction_notifier(State#rep_state.target_db_compaction_notifier),+ couch_api_wrap:db_close(State#rep_state.source),+ couch_api_wrap:db_close(State#rep_state.target). do_last_checkpoint(#rep_state{seqs_in_progress = [],