couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kxe...@apache.org
Subject fabric commit: updated refs/heads/master to b86eef5
Date Wed, 17 Jun 2015 09:23:18 GMT
Repository: couchdb-fabric
Updated Branches:
  refs/heads/master 19df05419 -> b86eef57e


Use couch_db:normalize_dbname

COUCHDB-2715


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

Branch: refs/heads/master
Commit: b86eef57e2b3c73e78f661d3138cd4b7a31b2b60
Parents: 19df054
Author: ILYA Khlopotov <iilyak@ca.ibm.com>
Authored: Mon Jun 15 05:54:08 2015 -0700
Committer: ILYA Khlopotov <iilyak@ca.ibm.com>
Committed: Mon Jun 15 05:54:08 2015 -0700

----------------------------------------------------------------------
 src/fabric_doc_update.erl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb-fabric/blob/b86eef57/src/fabric_doc_update.erl
----------------------------------------------------------------------
diff --git a/src/fabric_doc_update.erl b/src/fabric_doc_update.erl
index 69f682f..a39efad 100644
--- a/src/fabric_doc_update.erl
+++ b/src/fabric_doc_update.erl
@@ -119,7 +119,7 @@ is_users_db(DbName) ->
     DbName == ConfigName orelse path_ends_with(DbName, <<"_users">>).
 
 path_ends_with(Path, Suffix) ->
-    Suffix == lists:last(binary:split(mem3:dbname(Path), <<"/">>, [global])).
+    Suffix == couch_db:normalize_dbname(Path).
 
 fake_db(Opts) ->
     UserCtx = couch_util:get_value(user_ctx, Opts, #user_ctx{}),


Mime
View raw message