rnewson commented on code in PR #5673:
URL: https://github.com/apache/couchdb/pull/5673#discussion_r2369206843
##########
src/couch/src/couch_query_servers.erl:
##########
@@ -299,9 +299,23 @@ log_sum_overflow(InSize, OutSize) ->
"input size: ~b "
"output size: ~b",
Msg = iolist_to_binary(io_lib:format(Fmt, [InSize, OutSize])),
- couch_log:error(Msg, []),
+ couch_log:error(<<Msg/binary, " (~s)">>, [filename()]),
Msg.
+filename() ->
+ case get(cfile_handle) of
+ {_Pid, File} ->
+ couch_file:filepath(File);
+ undefined ->
+ "unknown path"
+ end.
+
+overflow_threshold() ->
+ config:get_integer("query_server_config", "reduce_limit_threshold", 4906).
Review Comment:
it's 4906 in the original, I just made it the default here, probably the
original 4906 was a typo.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]