diff options
author | Brad Anderson <brad@cloudant.com> | 2010-05-25 15:21:45 -0400 |
---|---|---|
committer | Brad Anderson <brad@cloudant.com> | 2010-05-25 15:21:45 -0400 |
commit | cb2e6b3b258f1ccda74aa7bc96ec07b1da35bceb (patch) | |
tree | 076c489c01646ee4b502740d49642cc09d16a284 /include | |
parent | 0bcc808ce4787da27bda33dff3c8e377094b7042 (diff) |
all_databases now working with/without Customer param, types moved to mem.hrl, view updater thwarted for updates to dbs db.
Diffstat (limited to 'include')
-rw-r--r-- | include/membership.hrl | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/include/membership.hrl b/include/membership.hrl new file mode 100644 index 00000000..52bc4d1a --- /dev/null +++ b/include/membership.hrl @@ -0,0 +1,28 @@ + +%% version 3 of membership state +-record(mem, {header=3, + nodes=[], + clock=[], + args + }). + +%% types +-type join_type() :: init | join | replace | leave. +-type join_order() :: non_neg_integer(). +-type options() :: list(). +-type mem_node() :: {join_order(), node(), options()}. +-type mem_node_list() :: [mem_node()]. +-type arg_options() :: {test, boolean()}. +-type args() :: [] | [arg_options()]. +-type mem_state() :: #mem{}. +-type test() :: undefined | node(). +-type epoch() :: float(). +-type clock() :: {node(), epoch()}. +-type vector_clock() :: [clock()]. +-type ping_node() :: node() | nil. + +-type part() :: integer(). +-type ref_node_part() :: {reference(), node(), part()}. +-type tref() :: reference(). +-type np() :: {node(), part()}. +-type np_acc() :: [{np(), any()}]. |