Author: davisp
Date: Mon Nov 16 20:42:14 2009
New Revision: 880951
URL: http://svn.apache.org/viewvc?rev=880951&view=rev
Log:
Fix a couple typos in the source.
paramter -> parameter
InitalBuild -> InitialBuild
Thanks David Coallier and Glenn Rempe for pointing them out.
Modified:
couchdb/trunk/src/couchdb/couch_httpd_view.erl
couchdb/trunk/src/couchdb/couch_view_updater.erl
Modified: couchdb/trunk/src/couchdb/couch_httpd_view.erl
URL:
http://svn.apache.org/viewvc/couchdb/trunk/src/couchdb/couch_httpd_view.erl?rev=880951&r1=880950&r2=880951&view=diff
==============================================================================
--- couchdb/trunk/src/couchdb/couch_httpd_view.erl (original)
+++ couchdb/trunk/src/couchdb/couch_httpd_view.erl Mon Nov 16 20:42:14 2009
@@ -376,7 +376,7 @@
validate_view_query(include_docs, true, Args) ->
case Args#view_query_args.view_type of
reduce ->
- Msg = <<"Query paramter `include_docs` "
+ Msg = <<"Query parameter `include_docs` "
"is invalid for reduce views.">>,
throw({query_parse_error, Msg});
_ ->
@@ -638,11 +638,14 @@
end_json_response(Resp)
end.
-parse_bool_param("true") -> true;
-parse_bool_param("false") -> false;
parse_bool_param(Val) ->
- Msg = io_lib:format("Invalid value for boolean paramter: ~p", [Val]),
- throw({query_parse_error, ?l2b(Msg)}).
+ case string:to_lower(Val) of
+ "true" -> true;
+ "false" -> false;
+ _ ->
+ Msg = io_lib:format("Invalid boolean parameter: ~p", [Val]),
+ throw({query_parse_error, ?l2b(Msg)})
+ end.
parse_int_param(Val) ->
case (catch list_to_integer(Val)) of
Modified: couchdb/trunk/src/couchdb/couch_view_updater.erl
URL:
http://svn.apache.org/viewvc/couchdb/trunk/src/couchdb/couch_view_updater.erl?rev=880951&r1=880950&r2=880951&view=diff
==============================================================================
--- couchdb/trunk/src/couchdb/couch_view_updater.erl (original)
+++ couchdb/trunk/src/couchdb/couch_view_updater.erl Mon Nov 16 20:42:14 2009
@@ -137,7 +137,7 @@
do_maps(Group1, MapQueue, WriteQueue, ViewEmptyKVs)
end.
-do_writes(Parent, Owner, Group, WriteQueue, IntitalBuild) ->
+do_writes(Parent, Owner, Group, WriteQueue, InitialBuild) ->
case couch_work_queue:dequeue(WriteQueue) of
closed ->
Parent ! {new_group, Group};
@@ -155,12 +155,12 @@
AccViewKVs2, DocIdViewIdKeys ++ AccDocIdViewIdKeys}
end, nil, Queue),
Group2 = write_changes(Group, ViewKeyValues, DocIdViewIdKeys, NewSeq,
- IntitalBuild),
+ InitialBuild),
case Owner of
nil -> ok;
_ -> ok = gen_server:cast(Owner, {partial_update, Parent, Group2})
end,
- do_writes(Parent, Owner, Group2, WriteQueue, IntitalBuild)
+ do_writes(Parent, Owner, Group2, WriteQueue, InitialBuild)
end.
view_insert_query_results([], [], ViewKVs, DocIdViewIdKeysAcc) ->