You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ch...@apache.org on 2022/07/13 23:47:27 UTC

[couchdb-ioq] branch 4101-add-iopriority updated: Add system io_class

This is an automated email from the ASF dual-hosted git repository.

chewbranca pushed a commit to branch 4101-add-iopriority
in repository https://gitbox.apache.org/repos/asf/couchdb-ioq.git


The following commit(s) were added to refs/heads/4101-add-iopriority by this push:
     new 391716e  Add system io_class
391716e is described below

commit 391716e65dff9fd3f42195d8d24b4ad67721a3e7
Author: Russell Branca <ch...@apache.org>
AuthorDate: Wed Jul 13 16:47:17 2022 -0700

    Add system io_class
---
 include/ioq.hrl    | 4 +++-
 src/ioq_server.erl | 2 ++
 2 files changed, 5 insertions(+), 1 deletion(-)

diff --git a/include/ioq.hrl b/include/ioq.hrl
index 499a140..e363b6b 100644
--- a/include/ioq.hrl
+++ b/include/ioq.hrl
@@ -39,7 +39,8 @@
     {db_update, 1.0},
     {view_update, 1.0},
     {other, 1.0},
-    {interactive, 1.0}
+    {interactive, 1.0},
+    {system, 1.0}
 ]).
 
 
@@ -64,6 +65,7 @@
 -type io_priority() :: db_compact
     | db_update
     | interactive
+    | system
     | internal_repl
     | other
     | customer
diff --git a/src/ioq_server.erl b/src/ioq_server.erl
index 9f2a724..d3e2176 100644
--- a/src/ioq_server.erl
+++ b/src/ioq_server.erl
@@ -224,6 +224,8 @@ analyze_priority({view_compact, _Shard, _GroupId}) ->
     {view_compact, nil};
 analyze_priority({internal_repl, _Shard}) ->
     {internal_repl, nil};
+analyze_priority({system, _Shard}) ->
+    {system, nil};
 analyze_priority({low, _Shard}) ->
     {low, nil};
 analyze_priority(_Else) ->