Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MB-7013: Make the new vtree work with Apache CouchDB
This commits makes the new vtree work with Apache CouchDB 1.3.x. All GeoCouch JavaScript tests pass. You should be able to use it as a replacement for your current installation. Change-Id: I6e42fc8149c447a294a52955a8b576b80ba00c74 Reviewed-on: http://review.couchbase.org/22994 Tested-by: buildbot <build@couchbase.com> Reviewed-by: Filipe David Borba Manana <fdmanana@gmail.com>
- Loading branch information
Showing
16 changed files
with
416 additions
and
128 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
[httpd_db_handlers] | ||
_spatial_cleanup = {couch_spatial_http, handle_cleanup_req} | ||
|
||
[httpd_design_handlers] | ||
_spatial = {couch_spatial_http, handle_spatial_req} | ||
_spatial/_list = {couch_spatial_list, handle_view_list_req} | ||
_spatial/_info = {couch_spatial_http, handle_info_req} | ||
_spatial/_compact = {couch_spatial_http, handle_compact_req} | ||
;deprecated API | ||
_spatiallist = {couch_spatial_list, handle_view_list_req_deprecated} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
% Add the COUCH_SRC directory to include path | ||
IncludeDir = case os:getenv("COUCH_SRC") of | ||
false -> []; % env var not defined | ||
[] -> []; % env var set to empty string | ||
Dir -> | ||
% If a relative path is given, prepend "../" as we are one level under the root | ||
case filename:absname(Dir) of | ||
Dir -> | ||
[{i, Dir}]; | ||
_ -> | ||
[{i, filename:absname("../" ++ Dir)}] | ||
end | ||
end, | ||
|
||
% Add "makecheck" setting for testing | ||
MakeCheck = case os:getenv("MAKECHECK") of | ||
false -> []; % env var not defined | ||
[] -> []; % env var set to empty string | ||
_ -> [{d, makecheck}] | ||
end, | ||
|
||
% Add all variables to erl_opts | ||
case lists:keytake(erl_opts, 1, CONFIG) of | ||
false -> | ||
CONFIG ++ [{erl_opts, IncludeDir ++ MakeCheck}]; | ||
{value, {erl_opts, ErlOpts}, Config2} -> | ||
Config2 ++ [{erl_opts, ErlOpts ++ IncludeDir ++ MakeCheck}] | ||
end. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.