commit | 4e0e81fd9d668bf4d532864b9cab3ad2d7653d50 | [log] [tgz] |
---|---|---|
author | Paul J. Davis <paul.joseph.davis@gmail.com> | Thu Dec 11 20:13:57 2014 -0600 |
committer | Paul J. Davis <paul.joseph.davis@gmail.com> | Thu Dec 11 20:13:57 2014 -0600 |
tree | e9932cdb6bf0d7b02d25fe18824a8be81ce02b99 | |
parent | 5930256ad87aeaf2fdb0f6e82362718c47f82e13 [diff] |
Add system db handlers to fabric_doc_update This hard codes the before_doc_write functions for replicator and user databases like they are in couch_server. This is mostly motivated by the fact that couch_users_db:before_doc_update/1 adds random salt values to user documents when a password is changed. The replicator databases are included at this level for consistency with couch_server. COUCHDB-2510
Fabric is a collection of proxy functions for CouchDB operations in a cluster. These functions are used in BigCouch as the remote procedure endpoints on each of the cluster nodes.
For example, creating a database is a straightforward task in standalone CouchDB, but for BigCouch, 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 BigCouch.
Fabric requires R13B03 or higher and can be built with rebar, which comes bundled in the repository.