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 2024/02/15 17:46:02 UTC
(couchdb) branch couch-stats-resource-tracker-rebase updated: Use atom_to_binary on atoms
This is an automated email from the ASF dual-hosted git repository.
chewbranca pushed a commit to branch couch-stats-resource-tracker-rebase
in repository https://gitbox.apache.org/repos/asf/couchdb.git
The following commit(s) were added to refs/heads/couch-stats-resource-tracker-rebase by this push:
new d13843434 Use atom_to_binary on atoms
d13843434 is described below
commit d138434349667036e72b34cd72534c76cd8635f8
Author: Russell Branca <ch...@apache.org>
AuthorDate: Thu Feb 15 09:45:51 2024 -0800
Use atom_to_binary on atoms
---
src/couch_stats/src/couch_stats_resource_tracker.erl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/couch_stats/src/couch_stats_resource_tracker.erl b/src/couch_stats/src/couch_stats_resource_tracker.erl
index d44143340..102ca0a8c 100644
--- a/src/couch_stats/src/couch_stats_resource_tracker.erl
+++ b/src/couch_stats/src/couch_stats_resource_tracker.erl
@@ -596,7 +596,7 @@ convert_type(Atom) when is_atom(Atom) ->
atom_to_binary(Atom);
convert_type({coordinator, Verb0, Atom0}) when is_atom(Atom0) ->
Verb = atom_to_binary(Verb0),
- Atom = list_to_binary(Atom0),
+ Atom = atom_to_binary(Atom0),
<<"coordinator:", Verb/binary, ":", Atom/binary>>;
convert_type({coordinator, Verb0, Path0}) ->
Verb = atom_to_binary(Verb0),