anchor.diff:  % the License.
   
   -module(vtree).
  +
  +-include("couch_db.hrl").
   
   -export([lookup/3, lookup/5, within/2, intersect/2, disjoint/2, insert/4,
            area/1, merge_mbr/2, find_area_min_nth/1, partition_node/1,
  
positive.code:             %     If there is only one node, use that one.
              case {MbrW, MbrS, MbrE, MbrN} of
                  {error, error, _, _} ->
                      io:format("vtree: WORKAROUND WAS USED, PLEASE TELL vmx~n"),
                      [{MbrE, PartE}, {MbrN, PartN}];
                  {_, _, error, error} ->
                      io:format("vtree: WORKAROUND WAS USED, PLEASE TELL vmx~n"),
                      [{MbrW, PartW}, {MbrS, PartS}];
                  {_, error, error, _} ->
                      io:format("vtree: WORKAROUND WAS USED, PLEASE TELL vmx~n"),
                      [{MbrW, PartW}, {MbrN, PartN}];
                  {error, _, _, error} ->
                      io:format("vtree: WORKAROUND WAS USED, PLEASE TELL vmx~n"),
                      [{MbrS, PartS}, {MbrE, PartE}];
                  _ ->
                      % XXX vmx this is the right, normal case (i.e. the hack
  
negative.code:     {ok, NewPos2, TreeHeight} = vtree_bulk:bulk_load(
              Fd, NewPos, NewTargetTreeHeight, AddKeyValues2),
      T2 = get_timestamp(),
      ?LOG_DEBUG("It took: ~ps~n", [T2-T1]),
      ?LOG_DEBUG("Tree height: ~p~n", [TreeHeight]),
      {ok, NewPos2, TreeHeight}.
      %{ok, 0}.
  
  