summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorILYA Khlopotov <iilyak@apache.org>2017-06-27 09:18:44 -0700
committerILYA Khlopotov <iilyak@apache.org>2017-06-27 09:18:44 -0700
commit628ca7e2fec369ac4622842d78630027f527e529 (patch)
treebe12dbcdee90ffab93dcf098b3790274aaae04d3
parentd23b26d4e8faf719fdf12f1a5f2e20c5adf9fa1b (diff)
downloadcouchdb-628ca7e2fec369ac4622842d78630027f527e529.tar.gz
Allow keep_sending_changes to use hot code upgrade
-rw-r--r--src/couch/src/couch_changes.erl5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/couch/src/couch_changes.erl b/src/couch/src/couch_changes.erl
index 835251d50..11d0d8d4c 100644
--- a/src/couch/src/couch_changes.erl
+++ b/src/couch/src/couch_changes.erl
@@ -29,6 +29,9 @@
-export([changes_enumerator/2]).
+%% export so we can use fully qualified call to facilitate hot-code upgrade
+-export([keep_sending_changes/3]).
+
-record(changes_acc, {
db,
view_name,
@@ -644,7 +647,7 @@ keep_sending_changes(Args, Acc0, FirstRound) ->
DbOptions1 = [{user_ctx, Db#db.user_ctx} | DbOptions],
case couch_db:open(Db#db.name, DbOptions1) of
{ok, Db2} ->
- keep_sending_changes(
+ ?MODULE:keep_sending_changes(
Args#changes_args{limit=NewLimit},
ChangesAcc#changes_acc{
db = Db2,