Open a *statistics* cursor when gathering statistics.
This commit is contained in:
parent
9d2896016b
commit
84a85bbe38
1 changed files with 1 additions and 1 deletions
|
@ -341,7 +341,7 @@ is_empty(#state{connection=Connection, table=Table}) ->
|
||||||
%% @doc Get the status information for this wterl backend
|
%% @doc Get the status information for this wterl backend
|
||||||
-spec status(state()) -> [{atom(), term()}].
|
-spec status(state()) -> [{atom(), term()}].
|
||||||
status(#state{connection=Connection, table=Table}) ->
|
status(#state{connection=Connection, table=Table}) ->
|
||||||
case wterl:cursor_open(Connection, Table) of
|
case wterl:cursor_open(Connection, "statistics:" ++ Table, [{statistics_fast, true}]) of
|
||||||
{ok, Cursor} ->
|
{ok, Cursor} ->
|
||||||
TheStats =
|
TheStats =
|
||||||
case fetch_status(Cursor) of
|
case fetch_status(Cursor) of
|
||||||
|
|
Loading…
Reference in a new issue