diff options
Diffstat (limited to 'include/mem3.hrl')
-rw-r--r-- | include/mem3.hrl | 9 |
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. |