You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by da...@apache.org on 2017/09/19 19:15:42 UTC

[3/5] couchdb-cassim git commit: Don't exit on timeout callback in cassim metadata cache

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-3267


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

Branch: refs/heads/COUCHDB-3288-remove-public-db-record
Commit: b3bfd65bcb6246c2cf14a042b9afd13ff8fecab5
Parents: ab1ef1c
Author: Nick Vatamaniuc <va...@apache.org>
Authored: Tue Jan 3 17:32:50 2017 -0500
Committer: Nick Vatamaniuc <va...@apache.org>
Committed: Fri Jan 6 10:53:35 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/b3bfd65b/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) ->