couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dav...@apache.org
Subject [1/4] git commit: Don't break if we terminate during a changes reader restart
Date Sun, 17 Aug 2014 02:14:07 GMT
Repository: couchdb-cassim
Updated Branches:
  refs/heads/windsor-merge cef09097a -> f8cd12a8a


Don't break if we terminate during a changes reader restart


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

Branch: refs/heads/windsor-merge
Commit: bc74f289d3e01d268c60e6ae5b09fc4e0c1d5239
Parents: cef0909
Author: Paul J. Davis <paul.joseph.davis@gmail.com>
Authored: Sat Aug 16 21:12:12 2014 -0500
Committer: Paul J. Davis <paul.joseph.davis@gmail.com>
Committed: Sat Aug 16 21:12:12 2014 -0500

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


http://git-wip-us.apache.org/repos/asf/couchdb-cassim/blob/bc74f289/src/cassim_metadata_cache.erl
----------------------------------------------------------------------
diff --git a/src/cassim_metadata_cache.erl b/src/cassim_metadata_cache.erl
index 1eb0fc9..335256b 100644
--- a/src/cassim_metadata_cache.erl
+++ b/src/cassim_metadata_cache.erl
@@ -125,6 +125,8 @@ handle_info(_Msg, State) ->
     {noreply, State}.
 
 
+terminate(_Reason, #st{changes_pid = undefined}) ->
+    ok;
 terminate(_Reason, #st{changes_pid = Pid}) ->
     exit(Pid, kill),
     ok.


Mime
View raw message