summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAdam Kocoloski <adam@cloudant.com>2010-07-10 15:50:17 -0400
committerAdam Kocoloski <adam@cloudant.com>2010-08-12 01:24:19 -0400
commit6db30f462e5c77df2a4fb56cd793ecb5243ecdff (patch)
tree5682b194ef8806d6528470b08620c9b8d97757a2 /include
parent15820b8ec6aa24fe0283879de85cebec17686868 (diff)
thank you dialyzer
Diffstat (limited to 'include')
-rw-r--r--include/mem3.hrl9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/mem3.hrl b/include/mem3.hrl
index f6584f19..b9359b44 100644
--- a/include/mem3.hrl
+++ b/include/mem3.hrl
@@ -1,4 +1,11 @@
--record(shard, {name, node, dbname, range, ref}).
+% type specification hacked to suppress dialyzer warning re: match spec
+-record(shard, {
+ name :: binary() | '_',
+ node :: node() | '_',
+ dbname :: binary(),
+ range :: [non_neg_integer() | '$1' | '$2'],
+ ref :: reference() | 'undefined' | '_'
+}).
%% types
-type join_type() :: init | join | replace | leave.