summaryrefslogtreecommitdiff
path: root/src/ioq
diff options
context:
space:
mode:
authorRussell Branca <chewbranca@apache.org>2022-07-26 11:22:32 -0700
committerRussell Branca <chewbranca@apache.org>2022-07-26 11:22:32 -0700
commitdeef12eff39bd7294dd3940ca1c0b9b2b6751241 (patch)
tree042cfa411b67fa629dee64b780c491ebd9e81897 /src/ioq
parent74f12c74d393fc1a35fee3fe1fbf5db372525879 (diff)
downloadcouchdb-deef12eff39bd7294dd3940ca1c0b9b2b6751241.tar.gz
Add ioq:call_search
Diffstat (limited to 'src/ioq')
-rw-r--r--src/ioq/src/ioq.erl5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/ioq/src/ioq.erl b/src/ioq/src/ioq.erl
index 945e455ce..038d63bae 100644
--- a/src/ioq/src/ioq.erl
+++ b/src/ioq/src/ioq.erl
@@ -14,7 +14,7 @@
-behaviour(gen_server).
-behaviour(config_listener).
--export([start_link/0, call/3]).
+-export([start_link/0, call/3, call_search/3]).
-export([get_queue_lengths/0]).
-export([get_io_priority/0, set_io_priority/1, maybe_set_io_priority/1]).
-export([init/1, handle_call/3, handle_cast/2, handle_info/2, code_change/3, terminate/2]).
@@ -55,6 +55,9 @@ maybe_set_io_priority(Priority) ->
start_link() ->
gen_server:start_link({local, ?MODULE}, ?MODULE, [], []).
+call_search(Fd, Msg, Metadata) ->
+ call(Fd, Msg, Metadata).
+
call(Fd, Msg, Metadata) ->
Priority = io_class(Msg, Metadata),
case bypass(Priority) of