mirror of
https://github.com/processone/ejabberd.git
synced 2024-06-02 21:17:12 +02:00
typo fix
SVN Revision: 2412
This commit is contained in:
parent
31d6fe3c7d
commit
26ace9829a
|
@ -1962,7 +1962,7 @@ publish_item(Host, ServerHost, Node, Publisher, ItemId, Payload) ->
|
||||||
Features = features(Type),
|
Features = features(Type),
|
||||||
PublishFeature = lists:member("publish", Features),
|
PublishFeature = lists:member("publish", Features),
|
||||||
PublishModel = get_option(Options, publish_model),
|
PublishModel = get_option(Options, publish_model),
|
||||||
MaxItems = max_items(Options),
|
MaxItems = max_items(Host, Options),
|
||||||
DeliverPayloads = get_option(Options, deliver_payloads),
|
DeliverPayloads = get_option(Options, deliver_payloads),
|
||||||
PersistItems = get_option(Options, persist_items),
|
PersistItems = get_option(Options, persist_items),
|
||||||
PayloadCount = payload_xmlelements(Payload),
|
PayloadCount = payload_xmlelements(Payload),
|
||||||
|
@ -3154,6 +3154,7 @@ node_options(Type) ->
|
||||||
end.
|
end.
|
||||||
|
|
||||||
%% @spec (Options) -> MaxItems
|
%% @spec (Options) -> MaxItems
|
||||||
|
%% Host = host()
|
||||||
%% Options = [Option]
|
%% Options = [Option]
|
||||||
%% Option = {Key::atom(), Value::term()}
|
%% Option = {Key::atom(), Value::term()}
|
||||||
%% MaxItems = integer() | unlimited
|
%% MaxItems = integer() | unlimited
|
||||||
|
@ -3163,7 +3164,7 @@ node_options(Type) ->
|
||||||
%% @todo In practice, the current data structure means that we cannot manage
|
%% @todo In practice, the current data structure means that we cannot manage
|
||||||
%% millions of items on a given node. This should be addressed in a new
|
%% millions of items on a given node. This should be addressed in a new
|
||||||
%% version.
|
%% version.
|
||||||
max_items(Options) ->
|
max_items(Host, Options) ->
|
||||||
case get_option(Options, persist_items) of
|
case get_option(Options, persist_items) of
|
||||||
true ->
|
true ->
|
||||||
case get_option(Options, max_items) of
|
case get_option(Options, max_items) of
|
||||||
|
@ -3397,7 +3398,7 @@ set_xoption([_ | Opts], NewOpts) ->
|
||||||
is_last_item_cache_enabled(Host) ->
|
is_last_item_cache_enabled(Host) ->
|
||||||
case ets:lookup(gen_mod:get_module_proc(Host, config), last_item_cache) of
|
case ets:lookup(gen_mod:get_module_proc(Host, config), last_item_cache) of
|
||||||
[{last_item_cache, true}] -> true;
|
[{last_item_cache, true}] -> true;
|
||||||
_ false
|
_ -> false
|
||||||
end.
|
end.
|
||||||
|
|
||||||
set_cached_item({_, ServerHost, _}, NodeId, ItemId, Payload) ->
|
set_cached_item({_, ServerHost, _}, NodeId, ItemId, Payload) ->
|
||||||
|
|
Loading…
Reference in New Issue
Block a user