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 [Forced Update!]
Date Fri, 06 Jan 2017 15:54:08 GMT
Repository: couchdb-cassim
Updated Branches:
  refs/heads/master a6dd0ea97 -> b3bfd65bc (forced update)


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/master
Commit: b3bfd65bcb6246c2cf14a042b9afd13ff8fecab5
Parents: ab1ef1c
Author: Nick Vatamaniuc <vatamane@apache.org>
Authored: Tue Jan 3 17:32:50 2017 -0500
Committer: Nick Vatamaniuc <vatamane@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) ->


Mime
View raw message