summaryrefslogtreecommitdiff
path: root/storage/maria/ma_rt_mbr.c
diff options
context:
space:
mode:
Diffstat (limited to 'storage/maria/ma_rt_mbr.c')
-rw-r--r--storage/maria/ma_rt_mbr.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/storage/maria/ma_rt_mbr.c b/storage/maria/ma_rt_mbr.c
index dbde616401a..91e62c56839 100644
--- a/storage/maria/ma_rt_mbr.c
+++ b/storage/maria/ma_rt_mbr.c
@@ -526,6 +526,9 @@ double maria_rtree_overlapping_area(HA_KEYSEG *keyseg, uchar* a, uchar* b,
/*
Calculates MBR_AREA(a+b) - MBR_AREA(a)
+ Note: when 'a' and 'b' objects are far from each other,
+ the area increase can be really big, so this function
+ can return 'inf' as a result.
*/
double maria_rtree_area_increase(HA_KEYSEG *keyseg, uchar *a, uchar *b,