summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Vatamaniuc <vatamane@apache.org>2017-05-22 15:01:46 -0400
committerNick Vatamaniuc <nickva@users.noreply.github.com>2017-05-22 15:14:59 -0400
commitfe972cbd1448815bdf25c97d1322a4ee16dc4653 (patch)
tree7dcf079aeb905915e5d8571c8b7c8317527c194b
parenta9ad3429e7c40c9b4ec387fdb84567e5a67f8099 (diff)
downloadcouchdb-fe972cbd1448815bdf25c97d1322a4ee16dc4653.tar.gz
Expose replicator scheduler feature in the API
That was the intent all along, just forgot to enable before the merge.
-rw-r--r--src/couch_replicator/src/couch_replicator_scheduler.erl1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/couch_replicator/src/couch_replicator_scheduler.erl b/src/couch_replicator/src/couch_replicator_scheduler.erl
index 0739222ec..be956b6a7 100644
--- a/src/couch_replicator/src/couch_replicator_scheduler.erl
+++ b/src/couch_replicator/src/couch_replicator_scheduler.erl
@@ -209,6 +209,7 @@ restart_job(JobId) ->
%% gen_server functions
init(_) ->
+ config:enable_feature('scheduler'),
EtsOpts = [named_table, {keypos, #job.id}, {read_concurrency, true},
{write_concurrency, true}],
?MODULE = ets:new(?MODULE, EtsOpts),