diff options
author | ILYA Khlopotov <iilyak@apache.org> | 2017-06-27 09:18:44 -0700 |
---|---|---|
committer | ILYA Khlopotov <iilyak@apache.org> | 2017-06-27 09:18:44 -0700 |
commit | 628ca7e2fec369ac4622842d78630027f527e529 (patch) | |
tree | be12dbcdee90ffab93dcf098b3790274aaae04d3 | |
parent | d23b26d4e8faf719fdf12f1a5f2e20c5adf9fa1b (diff) | |
download | couchdb-628ca7e2fec369ac4622842d78630027f527e529.tar.gz |
Allow keep_sending_changes to use hot code upgrade
-rw-r--r-- | src/couch/src/couch_changes.erl | 5 |
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, |