couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rnew...@apache.org
Subject [6/6] couch-replicator commit: updated refs/heads/integration to ea59d11
Date Mon, 12 May 2014 15:16:55 GMT
Swallow rogue gen_server replies (temporary fix)


Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch-replicator/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch-replicator/commit/ea59d11a
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch-replicator/tree/ea59d11a
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-couch-replicator/diff/ea59d11a

Branch: refs/heads/integration
Commit: ea59d11a8cda4b83833b6665764ae48410c5149b
Parents: edd5dc4
Author: Robert Newson <rnewson@apache.org>
Authored: Fri May 9 15:55:16 2014 +0100
Committer: Robert Newson <rnewson@apache.org>
Committed: Mon May 12 16:14:32 2014 +0100

----------------------------------------------------------------------
 src/couch_replicator.erl | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-couch-replicator/blob/ea59d11a/src/couch_replicator.erl
----------------------------------------------------------------------
diff --git a/src/couch_replicator.erl b/src/couch_replicator.erl
index d2cdbe5..0db1ab7 100644
--- a/src/couch_replicator.erl
+++ b/src/couch_replicator.erl
@@ -393,7 +393,11 @@ handle_info(timeout, InitArgs) ->
     catch Class:Error ->
         Stack = erlang:get_stacktrace(),
         {stop, shutdown, {error, Class, Error, Stack, InitArgs}}
-    end.
+    end;
+
+handle_info({Ref, Error}, State) when is_reference(Ref) ->
+    couch_log:error("Rogue gen_server reply: ~p", [Error]),
+    {noreply, State}.
 
 handle_call(get_details, _From, #rep_state{rep_details = Rep} = State) ->
     {reply, {ok, Rep}, State};


Mime
View raw message