couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chewbra...@apache.org
Subject [28/50] [abbrv] couch-replicator commit: updated refs/heads/1963-eunit-bigcouch to 3cf0b13
Date Thu, 28 Aug 2014 17:30:28 GMT
start_link functions should return {ok, Pid}


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/087bef99
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch-replicator/tree/087bef99
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-couch-replicator/diff/087bef99

Branch: refs/heads/1963-eunit-bigcouch
Commit: 087bef992c4a296b0e7fa3aff2c7bb63fedd8505
Parents: a85ab81
Author: Paul J. Davis <paul.joseph.davis@gmail.com>
Authored: Mon Aug 11 15:03:06 2014 -0500
Committer: Paul J. Davis <paul.joseph.davis@gmail.com>
Committed: Mon Aug 11 15:03:06 2014 -0500

----------------------------------------------------------------------
 src/couch_replicator_changes_reader.erl | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-couch-replicator/blob/087bef99/src/couch_replicator_changes_reader.erl
----------------------------------------------------------------------
diff --git a/src/couch_replicator_changes_reader.erl b/src/couch_replicator_changes_reader.erl
index f28dd51..623e8f9 100644
--- a/src/couch_replicator_changes_reader.erl
+++ b/src/couch_replicator_changes_reader.erl
@@ -28,17 +28,17 @@
 
 start_link(StartSeq, #httpdb{} = Db, ChangesQueue, Options) ->
     Parent = self(),
-    spawn_link(fun() ->
+    {ok, spawn_link(fun() ->
         put(last_seq, StartSeq),
         put(retries_left, Db#httpdb.retries),
         ?MODULE:read_changes(Parent, StartSeq, Db#httpdb{retries = 0},
             ChangesQueue, Options, 1)
-    end);
+    end)};
 start_link(StartSeq, Db, ChangesQueue, Options) ->
     Parent = self(),
-    spawn_link(fun() ->
+    {ok, spawn_link(fun() ->
         ?MODULE:read_changes(Parent, StartSeq, Db, ChangesQueue, Options, 1)
-    end).
+    end)}.
 
 read_changes(Parent, StartSeq, Db, ChangesQueue, Options, Ts) ->
     Continuous = couch_util:get_value(continuous, Options),


Mime
View raw message