You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by ji...@apache.org on 2018/08/27 13:28:08 UTC
[couchdb] 01/01: Fix dialyzer warning of shard record construction
This is an automated email from the ASF dual-hosted git repository.
jiangphcn pushed a commit to branch 1580-shard-record-violation
in repository https://gitbox.apache.org/repos/asf/couchdb.git
commit 4df88ba17dc089ddba97aeb6e84a9655784b5b2a
Author: jiangph <ji...@cn.ibm.com>
AuthorDate: Mon Aug 27 21:24:47 2018 +0800
Fix dialyzer warning of shard record construction
- Fix dialyzer warning that record construction #shard violates
the declared type in fabric_doc_open_revs.erl,
cpse_test_purge_replication.erl and other files
Fixes #1580
---
src/mem3/include/mem3.hrl | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/src/mem3/include/mem3.hrl b/src/mem3/include/mem3.hrl
index 6579210..5a9761f 100644
--- a/src/mem3/include/mem3.hrl
+++ b/src/mem3/include/mem3.hrl
@@ -12,12 +12,12 @@
% type specification hacked to suppress dialyzer warning re: match spec
-record(shard, {
- name :: binary() | '_',
- node :: node() | '_',
- dbname :: binary(),
- range :: [non_neg_integer() | '$1' | '$2'] | '_',
+ name :: binary() | '_' | 'undefined',
+ node :: node() | '_' | 'undefined',
+ dbname :: binary() | 'undefined',
+ range :: [non_neg_integer() | '$1' | '$2'] | '_' | 'undefined',
ref :: reference() | 'undefined' | '_',
- opts :: list()
+ opts :: list() | 'undefined'
}).
%% Do not reference outside of mem3.