couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rnew...@apache.org
Subject [10/13] couch commit: updated refs/heads/master to 311ba94
Date Wed, 12 Aug 2015 15:54:10 GMT
Don't do pointless conversion of dbname into list


Project: http://git-wip-us.apache.org/repos/asf/couchdb-couch/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb-couch/commit/2b495755
Tree: http://git-wip-us.apache.org/repos/asf/couchdb-couch/tree/2b495755
Diff: http://git-wip-us.apache.org/repos/asf/couchdb-couch/diff/2b495755

Branch: refs/heads/master
Commit: 2b4957550ea3e1d18d1345f90efb406cb49aada8
Parents: 39293d8
Author: ILYA Khlopotov <iilyak@ca.ibm.com>
Authored: Wed Aug 5 10:46:33 2015 -0700
Committer: ILYA Khlopotov <iilyak@ca.ibm.com>
Committed: Tue Aug 11 12:25:00 2015 -0700

----------------------------------------------------------------------
 include/couch_db.hrl | 12 ++++++------
 src/couch_db.erl     |  2 +-
 2 files changed, 7 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-couch/blob/2b495755/include/couch_db.hrl
----------------------------------------------------------------------
diff --git a/include/couch_db.hrl b/include/couch_db.hrl
index cdad5d2..3c4eacf 100644
--- a/include/couch_db.hrl
+++ b/include/couch_db.hrl
@@ -41,12 +41,12 @@
 -define(ADMIN_CTX, {user_ctx, ?ADMIN_USER}).
 
 -define(SYSTEM_DATABASES, [
-    "_dbs",
-    "_global_changes",
-    "_metadata",
-    "_nodes",
-    "_replicator",
-    "_users"
+    <<"_dbs">>,
+    <<"_global_changes">>,
+    <<"_metadata">>,
+    <<"_nodes">>,
+    <<"_replicator">>,
+    <<"_users">>
 ]).
 
 

http://git-wip-us.apache.org/repos/asf/couchdb-couch/blob/2b495755/src/couch_db.erl
----------------------------------------------------------------------
diff --git a/src/couch_db.erl b/src/couch_db.erl
index 09079ed..b07dd6a 100644
--- a/src/couch_db.erl
+++ b/src/couch_db.erl
@@ -1525,4 +1525,4 @@ is_systemdb(DbName) when is_list(DbName) ->
 is_systemdb(<<"shards/", _/binary>> = Path) when is_binary(Path) ->
     is_systemdb(normalize_dbname(Path));
 is_systemdb(DbName) when is_binary(DbName) ->
-    lists:member(?b2l(DbName), ?SYSTEM_DATABASES).
+    lists:member(DbName, ?SYSTEM_DATABASES).


Mime
View raw message