anchor.diff:  
   update_doc(#httpd{user_ctx=Ctx} = Req, Db, DocId, #doc{deleted=Deleted}=Doc,
           Headers, UpdateType) ->
  -    W = couch_httpd:qs_value(Req, "w", couch_config:get("cluster", "w", "2")),
  +    W = couch_httpd:qs_value(Req, "w", integer_to_list(mem3:quorum(Db))),
       case couch_httpd:header_value(Req, "X-Couch-Full-Commit") of
       "true" ->
           Options = [full_commit, UpdateType, {user_ctx,Ctx}, {w,W}];
  
positive.code:     } = parse_doc_query(Req),
      couch_doc:validate_docid(DocId),
  
      W = couch_httpd:qs_value(Req, "w", couch_config:get("cluster", "w", "2")),
      Options = [{user_ctx,Ctx}, {w,W}],
  
      Loc = absolute_uri(Req, [$/, Db#db.name, $/, DocId]),
  
negative.code:     couch_httpd:validate_ctype(Req, "application/json"),
      {JsonProps} = chttpd:json_body_obj(Req),
      DocsArray = couch_util:get_value(<<"docs">>, JsonProps),
      W = couch_httpd:qs_value(Req, "w", integer_to_list(mem3:quorum(Db))),
      case chttpd:header_value(Req, "X-Couch-Full-Commit") of
      "true" ->
          Options = [full_commit, {user_ctx,Ctx}, {w,W}];
  