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 2021/08/24 21:54:55 UTC

[couchdb-ioq] 02/07: HACK: explode loudly on missing io_priority

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

chewbranca pushed a commit to branch ioq-per-shard-or-user
in repository https://gitbox.apache.org/repos/asf/couchdb-ioq.git

commit b780a6152c7261e2deb55725eae05565e5008a4f
Author: Russell Branca <ch...@apache.org>
AuthorDate: Wed Mar 6 19:14:04 2019 +0000

    HACK: explode loudly on missing io_priority
---
 src/ioq_server2.erl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/ioq_server2.erl b/src/ioq_server2.erl
index b3dc24f..595babe 100644
--- a/src/ioq_server2.erl
+++ b/src/ioq_server2.erl
@@ -94,7 +94,7 @@
 
 
 -spec call(pid(), term(), io_dimensions()) -> term().
-call(Fd, Msg, Dimensions) ->
+call(Fd, Msg, Dimensions) when Dimensions =/= undefined ->
     Req0 = #ioq_request{
         fd = Fd,
         msg = Msg,