anchor.diff:          {ok, _} ->
               IsLast = gb_trees:is_empty(ForestIt2#forest_it.heap),
               {{Ans, #link_token{
  -                restart_token = ForestIt2#forest_it{
  -                    batch = datastore_doc_batch:init()},
  +                restart_token = ForestIt2#forest_it{batch = undefined},
                   is_last = IsLast}}, ForestIt2};
           Error ->
               ?warning("Cannot fold links for args ~p by token: ~p",
  
positive.code:     when Result :: {ok, fold_acc()} | {error, term()}.
  fold(Ctx, Key, TreeId, Fun, Acc, #{token := Token} = Opts, InitBatch)
      when Token#link_token.restart_token =/= undefined ->
      ForestIt = Token#link_token.restart_token,
      {Ans, ForestIt2} = step_forest_fold(Fun, Acc, ForestIt,
          maps:remove(offset, Opts)),
  
  
negative.code:                 _ ->
                      IsLast = gb_trees:is_empty(ForestIt2#forest_it.heap),
                      Token = #link_token{
                          restart_token = ForestIt2#forest_it{batch = undefined},
                          is_last = IsLast},
                      {{Result, Token}, ForestIt2}
              end;
  