This is an automated email from the ASF dual-hosted git repository. iilyak pushed a commit to branch couch-stats-resource-tracker-v3-rebase-http-2 in repository https://gitbox.apache.org/repos/asf/couchdb.git
commit ab8bc7ec7d1af03188dd3559ccfb0df8b88c230f Author: ILYA Khlopotov <[email protected]> AuthorDate: Fri Jun 27 15:42:40 2025 -0700 fixup! Implement csrt:query/2 and csrt:query/4 --- src/couch_stats/src/csrt_query.erl | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/couch_stats/src/csrt_query.erl b/src/couch_stats/src/csrt_query.erl index bacc44db3..be95a93a4 100644 --- a/src/couch_stats/src/csrt_query.erl +++ b/src/couch_stats/src/csrt_query.erl @@ -414,6 +414,11 @@ parse_key(Key) when is_atom(Key) -> csrt_entry:key(Key). parse_key([BinKey | Rest], Keys) -> - parse_key(Rest, [csrt_entry:key(BinKey) | Keys]); + case csrt_entry:key(BinKey) of + {error, _} = Error -> + Error; + Key -> + parse_key(Rest, [Key | Keys]) + end; parse_key([], Keys) -> lists:reverse(Keys).
