anchor.diff:  %% @end
   %%--------------------------------------------------------------------
   terminate(_Reason, #state{mstores = MStore}) ->
  -    gb_trees:map(fun(_, {_, _, MSet}) ->
  +    gb_trees:map(fun(_, {_, MSet}) ->
                            mstore:close(MSet)
                    end, MStore),
       ok.
  
positive.code: handle_call({delete, Bucket}, _From,
              State = #state{dir = Dir}) ->
      {R, State1} = case get_set(Bucket, State) of
                        {ok, {{_, _, MSet}, S1}} ->
                            mstore:delete(MSet),
                            file:del_dir(filename:join([Dir, Bucket])),
                            MStore = gb_trees:delete(Bucket, S1#state.mstores),
                            CMStore = gb_trees:delete(
                                         Bucket, S1#state.closed_mstores),
                            {ok, S1#state{mstores = MStore,
                                          closed_mstores = CMStore}};
                        _ ->
  
negative.code: do_read(Bucket, Metric, Time, Count, State = #state{})
    when is_binary(Bucket), is_binary(Metric), is_integer(Count) ->
      case get_set(Bucket, State) of
          {ok, {{_LastWritten, MSet}, S2}} ->
              {ok, Data} = mstore:get(MSet, Metric, Time, Count),
              {Data, S2};
          _ ->
  