summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Doane <jaydoane@apache.org>2020-03-28 13:27:01 -0700
committerJay Doane <jaydoane@apache.org>2020-03-28 13:27:01 -0700
commit785dbf8fd007839dffb9a78151ffde720ad1ca4c (patch)
treea350a112c83993e91c51cc431d8d13732a187daa
parentbf887c58952f5a2a6a9ba95851befd4d169c3538 (diff)
downloadcouchdb-fdb-disable-features.tar.gz
Don't advertise unimplemented featuresfdb-disable-features
Removes the following features from the welcome message: - reshard - partitioned - pluggable-storage-engines - scheduler Although `scheduler` at least will presumably be returned once that feature is complete.
-rw-r--r--src/couch/src/couch_server.erl6
-rw-r--r--src/couch_replicator/src/couch_replicator_scheduler.erl3
-rw-r--r--src/mem3/src/mem3_reshard.erl9
3 files changed, 11 insertions, 7 deletions
diff --git a/src/couch/src/couch_server.erl b/src/couch/src/couch_server.erl
index 909e23898..5045a3155 100644
--- a/src/couch/src/couch_server.erl
+++ b/src/couch/src/couch_server.erl
@@ -238,10 +238,12 @@ init([]) ->
couch_util:set_process_priority(?MODULE, high),
% Mark pluggable storage engines as a supported feature
- config:enable_feature('pluggable-storage-engines'),
+ % Not implemented on FDB
+ % config:enable_feature('pluggable-storage-engines'),
% Mark partitioned databases as a supported feature
- config:enable_feature(partitioned),
+ % Not implemented on FDB
+ % config:enable_feature(partitioned),
% Mark being able to receive documents with an _access property as a supported feature
config:enable_feature('access-ready'),
diff --git a/src/couch_replicator/src/couch_replicator_scheduler.erl b/src/couch_replicator/src/couch_replicator_scheduler.erl
index 53c040e8c..00a352bee 100644
--- a/src/couch_replicator/src/couch_replicator_scheduler.erl
+++ b/src/couch_replicator/src/couch_replicator_scheduler.erl
@@ -225,7 +225,8 @@ update_job_stats(JobId, Stats) ->
%% gen_server functions
init(_) ->
- config:enable_feature('scheduler'),
+ % Temporarily disable on FDB, as it's not fully implemented yet
+ % config:enable_feature('scheduler'),
EtsOpts = [named_table, {keypos, #job.id}, {read_concurrency, true},
{write_concurrency, true}],
?MODULE = ets:new(?MODULE, EtsOpts),
diff --git a/src/mem3/src/mem3_reshard.erl b/src/mem3/src/mem3_reshard.erl
index 620b1bc73..a905dbae7 100644
--- a/src/mem3/src/mem3_reshard.erl
+++ b/src/mem3/src/mem3_reshard.erl
@@ -214,10 +214,11 @@ reset_state() ->
init(_) ->
% Advertise resharding API feature only if it is not disabled
- case is_disabled() of
- true -> ok;
- false -> config:enable_feature('reshard')
- end,
+ % reshard feature not implemented on FDB
+ % case is_disabled() of
+ % true -> ok;
+ % false -> config:enable_feature('reshard')
+ % end,
couch_log:notice("~p start init()", [?MODULE]),
EtsOpts = [named_table, {keypos, #job.id}, {read_concurrency, true}],
?MODULE = ets:new(?MODULE, EtsOpts),