]> granicus.if.org Git - postgis/commitdiff
Actually save Grand Unified Geom Cache rather than just building it
authorSandro Santilli <strk@keybit.net>
Thu, 9 Feb 2012 19:19:09 +0000 (19:19 +0000)
committerSandro Santilli <strk@keybit.net>
Thu, 9 Feb 2012 19:19:09 +0000 (19:19 +0000)
Fixes #547

git-svn-id: http://svn.osgeo.org/postgis/trunk@9136 b70326c6-7e19-0410-871a-916f4a2858ee

postgis/lwgeom_cache.c

index 7f470fc6b06e4232a606fff315815738987d5612..b53c776d90a99ed9ffa8c5d3512c1847470e3e3d 100644 (file)
@@ -26,6 +26,7 @@ GeomCache* GetGeomCache(FunctionCallInfoData *fcinfo)
                MemoryContextSwitchTo(old_context);
                cache->prep = 0;
                cache->rtree = 0;
+               fcinfo->flinfo->fn_extra = cache;
        }
        return cache;
 }