anchor.diff:                  {[Doc | DocsAcc], NonRepDocsAcc}
               end
           end, {[], []}, Docs),
  -        
  +
       DocBuckets = group_alike_docs(Docs2),
   
       case (Db#db.validate_doc_funs /= []) orelse
  
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:     apply_open_options2(Doc,Options);
  apply_open_options(Else,_Options) ->
      Else.
  
  apply_open_options2(Doc,[]) ->
      {ok, Doc};
  apply_open_options2(#doc{atts=Atts,revs=Revs}=Doc,
  