mirror of
https://github.com/processone/ejabberd.git
synced 2024-11-22 16:20:52 +01:00
Change record() to tuple() so Dialyzer can run
This commit is contained in:
parent
8cd32f9706
commit
8235c9eea1
@ -207,12 +207,12 @@ dirty_read(Host, Tab, Key) ->
|
|||||||
%% For the like operator the last element (not the tail as in
|
%% For the like operator the last element (not the tail as in
|
||||||
%% matchspecs) may be '_'.
|
%% matchspecs) may be '_'.
|
||||||
-spec select(storage_host(), storage_table(), [matchrule()]) ->
|
-spec select(storage_host(), storage_table(), [matchrule()]) ->
|
||||||
[record()].
|
[tuple()].
|
||||||
select(Host, Tab, MatchRules) ->
|
select(Host, Tab, MatchRules) ->
|
||||||
select(Host, Tab, MatchRules, read).
|
select(Host, Tab, MatchRules, read).
|
||||||
|
|
||||||
-spec select(storage_host(), storage_table(), [matchrule()], lock_kind()) ->
|
-spec select(storage_host(), storage_table(), [matchrule()], lock_kind()) ->
|
||||||
[record()].
|
[tuple()].
|
||||||
select(Host, Tab, MatchRules, Lock) ->
|
select(Host, Tab, MatchRules, Lock) ->
|
||||||
case get_table(Host, Tab) of
|
case get_table(Host, Tab) of
|
||||||
#table{backend = mnesia}->
|
#table{backend = mnesia}->
|
||||||
@ -224,7 +224,7 @@ select(Host, Tab, MatchRules, Lock) ->
|
|||||||
end.
|
end.
|
||||||
|
|
||||||
-spec select(storage_host(), storage_table(), [matchrule()], integer(), lock_kind()) ->
|
-spec select(storage_host(), storage_table(), [matchrule()], integer(), lock_kind()) ->
|
||||||
{[record()], any()} | '$end_of_table'.
|
{[tuple()], any()} | '$end_of_table'.
|
||||||
select(Host, Tab, MatchRules, N, Lock) ->
|
select(Host, Tab, MatchRules, N, Lock) ->
|
||||||
case get_table(Host, Tab) of
|
case get_table(Host, Tab) of
|
||||||
#table{backend = mnesia} ->
|
#table{backend = mnesia} ->
|
||||||
@ -236,7 +236,7 @@ select(Host, Tab, MatchRules, N, Lock) ->
|
|||||||
end.
|
end.
|
||||||
|
|
||||||
-spec select({storage_host(), storage_table()}, any()) ->
|
-spec select({storage_host(), storage_table()}, any()) ->
|
||||||
{[record()], any()} | '$end_of_table'.
|
{[tuple()], any()} | '$end_of_table'.
|
||||||
select({Host, Tab}, Cont) ->
|
select({Host, Tab}, Cont) ->
|
||||||
case get_table(Host, Tab) of
|
case get_table(Host, Tab) of
|
||||||
#table{backend = mnesia} ->
|
#table{backend = mnesia} ->
|
||||||
@ -246,7 +246,7 @@ select({Host, Tab}, Cont) ->
|
|||||||
end.
|
end.
|
||||||
|
|
||||||
-spec dirty_select(storage_host(), storage_table(), [matchrule()]) ->
|
-spec dirty_select(storage_host(), storage_table(), [matchrule()]) ->
|
||||||
[record()].
|
[tuple()].
|
||||||
dirty_select(Host, Tab, MatchRules) ->
|
dirty_select(Host, Tab, MatchRules) ->
|
||||||
case get_table(Host, Tab) of
|
case get_table(Host, Tab) of
|
||||||
#table{backend = mnesia}->
|
#table{backend = mnesia}->
|
||||||
|
Loading…
Reference in New Issue
Block a user