anchor.diff:                   (C)  -> C
                 end,
                 Str64).
  -
  --ifdef(SLF_COMMENT).
  -
  -
  --endif. % SLF_LAZY
  -
  --ifdef(TEST).
  --endif. % TEST
   
   %% @spec encode_bucket(binary()) -> string()
   %% @doc make a filename out of a Riak bucket
  
positive.code:             end
      end.
  
  %% %% @private
  %% %% Return a function to fold over keys on this backend
  %% fold_keys_fun(FoldKeysFun, undefined) ->
  %%     %% Fold across everything...
  %%     fun(StorageKey, Acc) ->
  %%             case from_object_key(StorageKey) of
  %%                 {Bucket, Key} ->
  %%                     FoldKeysFun(Bucket, Key, Acc);
  %%                 _ ->
  %%                     throw({break, Acc})
  %%             end
  %%     end;
  %% fold_keys_fun(FoldKeysFun, {bucket, FilterBucket}) ->
  %%     %% Fold across a specific bucket...
  %%     fun(StorageKey, Acc) ->
  %%             case from_object_key(StorageKey) of
  %%                 {Bucket, Key} when Bucket == FilterBucket ->
  %%                     FoldKeysFun(Bucket, Key, Acc);
  %%                 _ ->
  %%                     throw({break, Acc})
  %%             end
  %%     end;
  %% fold_keys_fun(FoldKeysFun, {index, FilterBucket, {eq, <<"$bucket">>, _}}) ->
  %%     %% 2I exact match query on special $bucket field...
  %%     fold_keys_fun(FoldKeysFun, {bucket, FilterBucket});
  %% fold_keys_fun(FoldKeysFun, {index, FilterBucket, {eq, FilterField, FilterTerm}}) ->
  %%     %% Rewrite 2I exact match query as a range...
  %%     NewQuery = {range, FilterField, FilterTerm, FilterTerm},
  %%     fold_keys_fun(FoldKeysFun, {index, FilterBucket, NewQuery});
  %% fold_keys_fun(FoldKeysFun, {index, FilterBucket, {range, <<"$key">>, StartKey, EndKey}}) ->
  %%     %% 2I range query on special $key field...
  %%     fun(StorageKey, Acc) ->
  %%             case from_object_key(StorageKey) of
  %%                 {Bucket, Key} when FilterBucket == Bucket,
  %%                                    StartKey =< Key,
  %%                                    EndKey >= Key ->
  %%                     FoldKeysFun(Bucket, Key, Acc);
  %%                 _ ->
  %%                     throw({break, Acc})
  %%             end
  %%     end;
  %% fold_keys_fun(FoldKeysFun, {index, FilterBucket, {range, FilterField, StartTerm, EndTerm}}) ->
  %%     %% 2I range query...
  %%     fun(StorageKey, Acc) ->
  %%             case from_index_key(StorageKey) of
  %%                 {Bucket, Key, Field, Term} when FilterBucket == Bucket,
  %%                                                 FilterField == Field,
  %%                                                 StartTerm =< Term,
  %%                                                 EndTerm >= Term ->
  %%                     FoldKeysFun(Bucket, Key, Acc);
  %%                 _ ->
  %%                     throw({break, Acc})
  %%             end
  %%     end;
  %% fold_keys_fun(_FoldKeysFun, Other) ->
  %%     throw({unknown_limiter, Other}).
  
  %% %% @private
  %% %% Return a function to fold over the objects on this backend
  %% fold_objects_fun(FoldObjectsFun, FilterBucket) ->
  %%     %% 2I does not support fold objects at this time, so this is much
  %%     %% simpler than fold_keys_fun.
  %%     fun({StorageKey, Value}, Acc) ->
  %%             case from_object_key(StorageKey) of
  %%                 {Bucket, Key} when FilterBucket == undefined;
  %%                                    Bucket == FilterBucket ->
  %%                     FoldObjectsFun(Bucket, Key, Value, Acc);
  %%                 _ ->
  %%                     throw({break, Acc})
  %%             end
  %%     end.
  
  
  %% @spec location(state(), {riak_object:bucket(), riak_object:key()})
  %%          -> string()
  
negative.code:         {error, Err} -> {error, Err, State}
      end.
  
  %% @doc Fold over all the buckets.
  -spec fold_buckets(riak_kv_backend:fold_buckets_fun(),
                     any(),
                     [],
                     state()) -> {ok, any()} | {async, fun()} | {error, term()}.
  fold_buckets(FoldBucketsFun, Acc, Opts, State) ->
      FoldFun = fold_buckets_fun(FoldBucketsFun),
      BucketFolder =
          fun() ->
  