commit | 8dcc3fb175807ac18a3d7c1fc95364910ee8969e | [log] [tgz] |
---|---|---|
author | Will Holley <willholley@gmail.com> | Tue Jan 03 09:54:30 2017 +0000 |
committer | Will Holley <willholley@gmail.com> | Tue Jan 03 10:37:15 2017 +0000 |
tree | c8257c816ec4aca43f9f58f48b33a912b825d5b2 | |
parent | 863b8d9671d57c3125b954a3f63467a1c7c5f01f [diff] |
Include conflicts parameter in doc_options When a keys array is passed to _all_docs, fabric translates this to individual open_doc calls. The conflicts=true query parameter is specified as a view-level option and is not, by default, parsed as an option that should be passed to open_doc. As a workaround, explicitly copy the view-level conflict parameter into the document options before open_doc is called. An alternative approach would be to address this when the query parameters are parsed, setting conflicts=true in both #mrargs and detail of fabric, I elected to make the change here instead. Fixes #COUCHDB-3264
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.