This is an automated email from the ASF dual-hosted git repository. jaydoane pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/couchdb.git
commit 19d2f9b690ff38e485d6b53336d83d50dd9f2ae1 Author: Jay Doane <[email protected]> AuthorDate: Sat Jun 18 08:22:28 2022 -0700 Fix "variable bound multiple times" warning --- src/couch_mrview/src/couch_mrview_http.erl | 2 +- src/mem3/src/mem3.erl | 4 ++-- src/mem3/src/mem3_reshard_httpd.erl | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/couch_mrview/src/couch_mrview_http.erl b/src/couch_mrview/src/couch_mrview_http.erl index fa3fab386..9d35e873a 100644 --- a/src/couch_mrview/src/couch_mrview_http.erl +++ b/src/couch_mrview/src/couch_mrview_http.erl @@ -264,7 +264,7 @@ get_view_callback(_, _, true) -> fun view_cb/2; % if we are operating on the users db and we aren't % admin, filter the view -get_view_callback(_DbName, _DbName, false) -> +get_view_callback(_, _, false) -> fun filtered_view_cb/2; % non _users databases get all fields get_view_callback(_, _, _) -> diff --git a/src/mem3/src/mem3.erl b/src/mem3/src/mem3.erl index eff3f2138..7b4a8eca2 100644 --- a/src/mem3/src/mem3.erl +++ b/src/mem3/src/mem3.erl @@ -323,8 +323,8 @@ range(#ordered_shard{range = Range}) -> Range; range(<<"shards/", Start:8/binary, "-", End:8/binary, "/", _/binary>>) -> [ - list_to_integer(binary_to_list(Start), 16), - list_to_integer(binary_to_list(End), 16) + binary_to_integer(Start, 16), + binary_to_integer(End, 16) ]. allowed_nodes() -> diff --git a/src/mem3/src/mem3_reshard_httpd.erl b/src/mem3/src/mem3_reshard_httpd.erl index 509661d9f..576f096d1 100644 --- a/src/mem3/src/mem3_reshard_httpd.erl +++ b/src/mem3/src/mem3_reshard_httpd.erl @@ -295,8 +295,8 @@ validate_range(<<BBin:8/binary, "-", EBin:8/binary>>) -> {B, E} = try { - list_to_integer(binary_to_list(BBin), 16), - list_to_integer(binary_to_list(EBin), 16) + binary_to_integer(BBin, 16), + binary_to_integer(EBin, 16) } catch _:_ ->
