mirror of
https://github.com/processone/ejabberd
synced 2025-10-03 17:59:31 +02:00
Make dialyzer happy
This commit is contained in:
parent
ead87e3727
commit
2016cf547f
1 changed files with 0 additions and 4 deletions
|
@ -542,8 +542,6 @@ run_sql_cmd(Command, From, State, Timestamp) ->
|
||||||
{error, Reason::binary()} | {aborted, Reason::binary()} | {atomic, Result::any()}.
|
{error, Reason::binary()} | {aborted, Reason::binary()} | {atomic, Result::any()}.
|
||||||
outer_op({sql_query, Query}) ->
|
outer_op({sql_query, Query}) ->
|
||||||
sql_query_internal(Query);
|
sql_query_internal(Query);
|
||||||
outer_op({sql_transaction, F}) ->
|
|
||||||
outer_op({sql_transaction, F, ?MAX_TRANSACTION_RESTARTS});
|
|
||||||
outer_op({sql_transaction, F, Restarts}) ->
|
outer_op({sql_transaction, F, Restarts}) ->
|
||||||
outer_transaction(F, Restarts, <<"">>);
|
outer_transaction(F, Restarts, <<"">>);
|
||||||
outer_op({sql_bloc, F}) -> execute_bloc(F).
|
outer_op({sql_bloc, F}) -> execute_bloc(F).
|
||||||
|
@ -552,8 +550,6 @@ outer_op({sql_bloc, F}) -> execute_bloc(F).
|
||||||
%% nested operation
|
%% nested operation
|
||||||
nested_op({sql_query, Query}) ->
|
nested_op({sql_query, Query}) ->
|
||||||
sql_query_internal(Query);
|
sql_query_internal(Query);
|
||||||
nested_op({sql_transaction, F}) ->
|
|
||||||
nested_op({sql_transaction, F, ?MAX_TRANSACTION_RESTARTS});
|
|
||||||
nested_op({sql_transaction, F, Restarts}) ->
|
nested_op({sql_transaction, F, Restarts}) ->
|
||||||
NestingLevel = get(?NESTING_KEY),
|
NestingLevel = get(?NESTING_KEY),
|
||||||
if NestingLevel =:= (?TOP_LEVEL_TXN) ->
|
if NestingLevel =:= (?TOP_LEVEL_TXN) ->
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue