couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chewbra...@apache.org
Subject [couchdb-ioq] 01/02: Rearrange IOQ config declarations into header file
Date Fri, 12 Apr 2019 22:47:07 GMT
This is an automated email from the ASF dual-hosted git repository.

chewbranca pushed a commit to branch allow-for-dynamic-ioq-classes
in repository https://gitbox.apache.org/repos/asf/couchdb-ioq.git

commit 08c6bbb67031c39d48a1beb1b74ea21de38ded3a
Author: Russell Branca <chewbranca@apache.org>
AuthorDate: Fri Apr 12 22:35:55 2019 +0000

    Rearrange IOQ config declarations into header file
---
 include/ioq.hrl    | 9 +++++++++
 src/ioq_config.erl | 8 --------
 2 files changed, 9 insertions(+), 8 deletions(-)

diff --git a/include/ioq.hrl b/include/ioq.hrl
index 55c95f8..499a140 100644
--- a/include/ioq.hrl
+++ b/include/ioq.hrl
@@ -19,6 +19,15 @@
 -define(DISPATCH_SINGLE_SERVER, "single_server").
 -define(DISPATCH_SERVER_PER_SCHEDULER, "server_per_scheduler").
 
+%% Config Categories
+-define(SHARD_CLASS_SEPARATOR, "||").
+-define(IOQ2_CONFIG, "ioq2").
+-define(IOQ2_BYPASS_CONFIG, "ioq2.bypass").
+-define(IOQ2_SHARDS_CONFIG, "ioq2.shards").
+-define(IOQ2_USERS_CONFIG, "ioq2.users").
+-define(IOQ2_CLASSES_CONFIG, "ioq2.classes").
+
+
 -define(DEFAULT_CLASS_PRIORITIES, [
     {customer, 1.0},
     {internal_repl, 0.001},
diff --git a/src/ioq_config.erl b/src/ioq_config.erl
index 9cc2371..33a3030 100644
--- a/src/ioq_config.erl
+++ b/src/ioq_config.erl
@@ -54,14 +54,6 @@
 ]).
 
 
--define(SHARD_CLASS_SEPARATOR, "||").
--define(IOQ2_CONFIG, "ioq2").
--define(IOQ2_BYPASS_CONFIG, "ioq2.bypass").
--define(IOQ2_SHARDS_CONFIG, "ioq2.shards").
--define(IOQ2_USERS_CONFIG, "ioq2.users").
--define(IOQ2_CLASSES_CONFIG, "ioq2.classes").
-
-
 ioq_classes() ->
     [Class || {Class, _Priority} <- ?DEFAULT_CLASS_PRIORITIES].
 


Mime
View raw message