Permalink
Browse files

issue replicas warning when configing default bucket. Bug 2712

Change-Id: I022ab72ad95aa0a93c2c7fc9efb58b71b242da7b
Reviewed-on: http://review.northscale.com/3130
Tested-by: Aliaksey Kandratsenka <alkondratenko@gmail.com>
Reviewed-by: Steve Yen <steve.yen@gmail.com>
Tested-by: Steve Yen <steve.yen@gmail.com>
  • Loading branch information...
1 parent 3b5f5f1 commit bec930a7ae9d92610ee35cd9c79253873bf3b227 Aliaksey Kandratsenka committed with steveyen Oct 7, 2010
Showing with 8 additions and 3 deletions.
  1. +8 −3 deps/menelaus/src/menelaus_web_buckets.erl
@@ -316,9 +316,14 @@ handle_setup_default_bucket_post(Req) ->
{errors, Errors} ->
reply_json(Req, {struct, Errors}, 400)
end;
- {true, {ok, _, JSONSummaries}} ->
- reply_json(Req, {struct, [{errors, {struct, []}},
- {summaries, {struct, JSONSummaries}}]}, 200)
+ {true, {ok, ParsedProps, JSONSummaries}} ->
+ FinalErrors = perform_warnings_validation(ParsedProps, []),
+ reply_json(Req, {struct, [{errors, {struct, FinalErrors}},
+ {summaries, {struct, JSONSummaries}}]},
+ case FinalErrors of
+ [] -> 200;
+ _ -> 400
+ end)
end.
-record(ram_summary, {

0 comments on commit bec930a

Please sign in to comment.