couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vatam...@apache.org
Subject [couchdb] 01/02: [fixup] Fix node -> node() bug in scheduler
Date Fri, 07 Apr 2017 19:59:44 GMT
This is an automated email from the ASF dual-hosted git repository.

vatamane pushed a commit to branch 63012-scheduler
in repository https://gitbox.apache.org/repos/asf/couchdb.git

commit 197c4cf92a23db2dbc02bf0000fa96a4876891ff
Author: Nick Vatamaniuc <vatamane@apache.org>
AuthorDate: Fri Apr 7 15:58:53 2017 -0400

    [fixup] Fix node -> node() bug in scheduler
---
 src/couch_replicator/src/couch_replicator_scheduler.erl | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/couch_replicator/src/couch_replicator_scheduler.erl b/src/couch_replicator/src/couch_replicator_scheduler.erl
index a741a9f..52d579f 100644
--- a/src/couch_replicator/src/couch_replicator_scheduler.erl
+++ b/src/couch_replicator/src/couch_replicator_scheduler.erl
@@ -517,13 +517,13 @@ start_job_int(#job{} = Job0, State) ->
             ok = update_state_started(Job, Child, Ref, State),
             couch_log:notice("~p: Job ~p started as ~p",
                 [?MODULE, Job#job.id, Child]);
-        {error, {already_started, OtherPid}} when node(OtherPid) =:= node ->
+        {error, {already_started, OtherPid}} when node(OtherPid) =:= node() ->
             Ref = monitor(process, OtherPid),
             ok = update_state_started(Job, OtherPid, Ref, State),
             couch_log:notice("~p: Job ~p already running as ~p. Most likely",
                 " because replicator scheduler was restarted",
                  [?MODULE, Job#job.id, OtherPid]);
-        {error, {already_started, OtherPid}} when node(OtherPid) =/= node ->
+        {error, {already_started, OtherPid}} when node(OtherPid) =/= node() ->
             CrashMsg = "Duplicate replication running on another node",
             couch_log:notice("~p: Job ~p already running as ~p. Most likely"
                 " because a duplicate replication is running on another node",

-- 
To stop receiving notification emails like this one, please contact
"commits@couchdb.apache.org" <commits@couchdb.apache.org>.

Mime
View raw message