From 84a85bbe38c238ee2cb19046a40730fd05be0ef1 Mon Sep 17 00:00:00 2001 From: Gregory Burd Date: Wed, 2 Oct 2013 14:41:36 -0400 Subject: [PATCH] Open a *statistics* cursor when gathering statistics. --- src/riak_kv_wterl_backend.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/riak_kv_wterl_backend.erl b/src/riak_kv_wterl_backend.erl index c075317..e1a2e3d 100644 --- a/src/riak_kv_wterl_backend.erl +++ b/src/riak_kv_wterl_backend.erl @@ -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