commit | 70535eeb9b9c226129bdc96cbca8492fbc867cf6 | [log] [tgz] |
---|---|---|
author | Tony Sun <tony.sun@cloudant.com> | Fri Feb 10 11:23:07 2017 -0800 |
committer | Tony Sun <tony.sun@cloudant.com> | Fri Feb 10 11:23:07 2017 -0800 |
tree | 4dbcf39405c7e09869d50cdde22aa5bbd5bb3387 | |
parent | cf220b2e927093e3bd6f409b4ca9f7b1be0a04a3 [diff] |
Use RealReplyCount to distinguish worker replies and invalid docs We use {ok, []} in couch_db:open_doc_revs_int/3 as a return value when the document does not exist and open_revs=all. This leads to an incorrect all_workers_died error. We use ReplyCount and RealReplyCount to distinguish between when no workers were actually used in a reply versus when the document does not exist COUCHDB-3113
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.