This is an automated email from the ASF dual-hosted git repository. chewbranca pushed a commit to branch couch-stats-resource-tracker in repository https://gitbox.apache.org/repos/asf/couchdb-ioq.git
commit 6dd727d1fdd55a9e3826109384f9a27e6cadcbe0 Author: Russell Branca <[email protected]> AuthorDate: Tue Feb 13 16:58:42 2024 -0800 Increment csrt ioq called --- src/ioq.erl | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ioq.erl b/src/ioq.erl index fed2290..eb55316 100644 --- a/src/ioq.erl +++ b/src/ioq.erl @@ -53,12 +53,16 @@ call(Pid, {prompt, _} = Msg, Priority) -> call(Pid, {data, _} = Msg, Priority) -> ioq_osq:call(Pid, Msg, Priority); call(Fd, Msg, Priority) -> + %% TODO: should this key off of existing couch_stats like most things? + %% TODO: if so, which set of IOQ fields and to what granularity? + couch_stats_resource_tracker:ioq_called(), case ioq2_enabled() of false -> ioq_server:call(Fd, Msg, Priority); true -> ioq_server2:call(Fd, Msg, Priority) end. call_search(Fd, Msg, Priority) -> + couch_stats_resource_tracker:ioq_called(), %% TODO: flag as search case ioq2_enabled() of false -> ioq_server:call(Fd, Msg, Priority); true -> ioq_server2:call_search(Fd, Msg, Priority)
