anchor.diff:                  {ok, {Start, Path}} ->
                       % our unflushed doc is a leaf node. Go back on the path
                       % to find the previous rev that's on disk.
  -                    
  +
                       LoadPrevRevFun = fun() ->
                                   make_first_doc_on_disk(Db,Id,Start-1, tl(Path))
                               end,
  -                    
  +
                       case couch_doc:has_stubs(Doc) of
                       true ->
                           DiskDoc = LoadPrevRevFun(),
  
positive.code:                         check_dup_atts(Doc)), Db#db.updater_fd)
                  || Doc <- B] || B <- DocBuckets2],
          {DocBuckets4, IdRevs} = new_revs(DocBuckets3, [], []),
          
          {ok, CommitResults} = write_and_commit(Db, DocBuckets4, NonRepDocs, Options2),
          
          ResultsDict = dict:from_list(IdRevs ++ CommitResults ++ PreCommitFailures),
          {ok, lists:map(
              fun(#doc{id=Id,revs={Pos, RevIds}}) ->
  
negative.code: 
  changes_since(Db, StartSeq, Fun, Acc) ->
      changes_since(Db, StartSeq, Fun, [], Acc).
  
  changes_since(Db, StartSeq, Fun, Options, Acc) ->
      Wrapper = fun(DocInfo, _Offset, Acc2) -> Fun(DocInfo, Acc2) end,
      {ok, _LastReduction, AccOut} = couch_btree:fold(by_seq_btree(Db),
  