Ignore requests for stats for right now.
This commit is contained in:
parent
4418a74183
commit
211ffd884c
1 changed files with 10 additions and 9 deletions
|
@ -543,15 +543,16 @@ from_index_key(LKey) ->
|
||||||
|
|
||||||
%% @private
|
%% @private
|
||||||
%% Return all status from wterl statistics cursor
|
%% Return all status from wterl statistics cursor
|
||||||
fetch_status(Cursor) ->
|
fetch_status(_Cursor) ->
|
||||||
{ok, fetch_status(Cursor, wterl:cursor_next_value(Cursor), [])}.
|
{ok, []}.
|
||||||
fetch_status(_Cursor, {error, _}, Acc) ->
|
%% {ok, fetch_status(Cursor, wterl:cursor_next_value(Cursor), [])}.
|
||||||
lists:reverse(Acc);
|
%% fetch_status(_Cursor, {error, _}, Acc) ->
|
||||||
fetch_status(_Cursor, not_found, Acc) ->
|
%% lists:reverse(Acc);
|
||||||
lists:reverse(Acc);
|
%% fetch_status(_Cursor, not_found, Acc) ->
|
||||||
fetch_status(Cursor, {ok, Stat}, Acc) ->
|
%% lists:reverse(Acc);
|
||||||
[What,Val|_] = [binary_to_list(B) || B <- binary:split(Stat, [<<0>>], [global])],
|
%% fetch_status(Cursor, {ok, Stat}, Acc) ->
|
||||||
fetch_status(Cursor, wterl:cursor_next_value(Cursor), [{What,Val}|Acc]).
|
%% [What,Val|_] = [binary_to_list(B) || B <- binary:split(Stat, [<<0>>], [global])],
|
||||||
|
%% fetch_status(Cursor, wterl:cursor_next_value(Cursor), [{What,Val}|Acc]).
|
||||||
|
|
||||||
size_cache(RequestedSize) ->
|
size_cache(RequestedSize) ->
|
||||||
Size =
|
Size =
|
||||||
|
|
Loading…
Reference in a new issue