anchor.diff:  
       {ok, Errors}.
   
  -update_replicated_doc(#db{name = BucketBin},
  +update_replicated_doc(#db{name = BucketBin, user_ctx = UserCtx},
                         #doc{revs = {Pos, [RevId | _]}} = Doc, _Options) ->
       Bucket = binary_to_list(BucketBin),
   
  -    case do_update_replicated_doc(Bucket, Doc) of
  +    case do_update_replicated_doc(Bucket, UserCtx, Doc) of
           ok ->
               {ok, {Pos, RevId}};
           {error, Error} ->
  
positive.code: 
      case RV of
          retry ->
              do_update_replicated_doc_loop(Bucket, VBucket, DocId,
                                            DocRev, DocJson, DocDeleted);
          _Other ->
              RV
  
negative.code:     Errors =
          lists:foldr(
            fun (#doc{id = Id, revs = {Pos, [RevId | _]}} = Doc, ErrorsAcc) ->
                    case do_update_replicated_doc(Bucket, UserCtx, Doc) of
                        ok ->
                            ErrorsAcc;
                        {error, Error} ->
  