aboutsummaryrefslogtreecommitdiff
path: root/src/node_flat_sql.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/node_flat_sql.erl')
-rw-r--r--src/node_flat_sql.erl9
1 files changed, 1 insertions, 8 deletions
diff --git a/src/node_flat_sql.erl b/src/node_flat_sql.erl
index 2773114a2..c48a1a636 100644
--- a/src/node_flat_sql.erl
+++ b/src/node_flat_sql.erl
@@ -655,14 +655,7 @@ get_items(Nidx, _From, undefined) ->
" from pubsub_item where nodeid='", SNidx/binary, "'",
" order by creation asc">>]) of
{selected, _, AllItems} ->
- Count = length(AllItems),
- if Count =< ?MAXITEMS ->
- {result, {[raw_to_item(Nidx, RItem) || RItem <- AllItems], undefined}};
- true ->
- RItems = lists:sublist(AllItems, ?MAXITEMS),
- Rsm = rsm_page(Count, 0, 0, RItems),
- {result, {[raw_to_item(Nidx, RItem) || RItem <- RItems], Rsm}}
- end;
+ {result, {[raw_to_item(Nidx, RItem) || RItem <- AllItems], undefined}};
_ ->
{result, {[], undefined}}
end;