anchor.diff:      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,
  
positive.code:                         Doc2 = Doc,
                          GetDiskDocFun = LoadPrevRevFun
                      end,
                      
                      case validate_doc_update(Db, Doc2, GetDiskDocFun) of
                      ok ->
                          {[Doc2 | AccValidated], AccErrors2};
  
negative.code:         (Att) ->
              Att#att{revpos=RevPos+1}
          end, Atts)}.
  
  
  doc_flush_atts(Doc, Fd) ->
      Doc#doc{atts=[flush_att(Fd, Att) || Att <- Doc#doc.atts]}.
  