couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vatam...@apache.org
Subject couchdb-cassim git commit: Don't exit on timeout callback in cassim metadata cache
Date Fri, 06 Jan 2017 15:35:06 GMT
Repository: couchdb-cassim
Updated Branches:
  refs/heads/master ab1ef1cee -> a6dd0ea97


Don't exit on timeout callback in cassim metadata cache

Previously changes feed process exited after timeout message then a new
listener process was spawned after 5 seconds.

COUCHDB-3266


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

Branch: refs/heads/master
Commit: a6dd0ea977bc22003ec5e387b55f66fa1474eb9a
Parents: ab1ef1c
Author: Nick Vatamaniuc <vatamane@apache.org>
Authored: Tue Jan 3 17:32:50 2017 -0500
Committer: Nick Vatamaniuc <vatamane@apache.org>
Committed: Tue Jan 3 17:32:50 2017 -0500

----------------------------------------------------------------------
 src/cassim_metadata_cache.erl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-cassim/blob/a6dd0ea9/src/cassim_metadata_cache.erl
----------------------------------------------------------------------
diff --git a/src/cassim_metadata_cache.erl b/src/cassim_metadata_cache.erl
index ceb6c9e..8babd8e 100644
--- a/src/cassim_metadata_cache.erl
+++ b/src/cassim_metadata_cache.erl
@@ -184,7 +184,7 @@ changes_callback({change, {Change}}, _) ->
     end,
     {ok, couch_util:get_value(seq, Change)};
 changes_callback(timeout, EndSeq) ->
-    exit({seq, EndSeq});
+    {ok, EndSeq};
 changes_callback({error, database_does_not_exist}, _EndSeq) ->
     exit({error, database_does_not_exist});
 changes_callback({error, _}, EndSeq) ->


Mime
View raw message