commit | 14c15179296d0c1934497ca4e8db42c4822fdd8f | [log] [tgz] |
---|---|---|
author | ILYA Khlopotov <iilyak@ca.ibm.com> | Fri Apr 08 10:18:42 2016 -0700 |
committer | ILYA Khlopotov <iilyak@ca.ibm.com> | Tue Apr 19 14:45:40 2016 -0700 |
tree | 08a10c8e8d687f8bea82b0c2daa2ba40f33d116e | |
parent | dc5cca804132266edec7a62cb2ca6b36cfadab27 [diff] |
Use couch_db:dbname_suffix in path_ends_with Replace couch_db:normalize_dbname with couch_db:dbname_suffix since the semantic of normalize_dbname has been changed. couch_db:normalize_dbname would return all components of the path with shard info removed from it. couch_db:dbname_suffix on the other hand would return the last component of the path. It would also ensure that shard's suffix is removed from the result. COUCHDB-2983
Fabric is a collection of proxy functions for CouchDB operations in a cluster. These functions are used in CouchDB as the remote procedure endpoints on each of the cluster nodes.
For example, creating a database is a straightforward task in CouchDB 1.x, but for a clustered CouchDB, each node that will store a shard for the database needs to receive and execute a fabric function. The node handling the request also needs to compile the results from each of the nodes and respond accordingly to the client.
Fabric is used in conjunction with ‘Rexi’ which is also an application within CouchDB.
Fabric requires R13B03 or higher and can be built with rebar.