Open a *statistics* cursor when gathering statistics.

This commit is contained in:
Gregory Burd 2013-10-02 14:41:36 -04:00
parent 9d2896016b
commit 84a85bbe38

View file

@ -341,7 +341,7 @@ is_empty(#state{connection=Connection, table=Table}) ->
%% @doc Get the status information for this wterl backend
-spec status(state()) -> [{atom(), term()}].
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} ->
TheStats =
case fetch_status(Cursor) of