summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorILYA Khlopotov <iilyak@apache.org>2017-08-18 15:04:55 -0700
committerILYA Khlopotov <iilyak@apache.org>2017-08-18 15:04:55 -0700
commit50afcce24b9b94c05f3ca7d8c30273fdac11f0eb (patch)
tree4d4b6253469f279d9056f2019bbf7c226a8a910e
parentb2397c514d7b07688782785983000190be859346 (diff)
downloadcouchdb-50afcce24b9b94c05f3ca7d8c30273fdac11f0eb.tar.gz
Use fully qualified call to allow code upgrade
rexi_monitor:wait_monitor function is called recursivelly. This means that hot code upgrade will not work when we are inside that function. Use fully qualified call to allow the update of a module.
-rw-r--r--src/rexi/src/rexi_monitor.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/rexi/src/rexi_monitor.erl b/src/rexi/src/rexi_monitor.erl
index da6dcf533..f90ec5160 100644
--- a/src/rexi/src/rexi_monitor.erl
+++ b/src/rexi/src/rexi_monitor.erl
@@ -12,6 +12,7 @@
-module(rexi_monitor).
-export([start/1, stop/1]).
+-export([wait_monitors/1]).
%% @doc spawn_links a process which monitors the supplied list of items and
@@ -51,7 +52,7 @@ wait_monitors(Parent) ->
receive
{'DOWN', _, process, Pid, Reason} ->
notify_parent(Parent, Pid, Reason),
- wait_monitors(Parent);
+ ?MODULE:wait_monitors(Parent);
{Parent, shutdown} ->
ok
end.