I have a bug!
authorRobert Haas <rhaas@postgresql.org>
Thu, 12 Jun 2014 19:43:18 +0000 (15:43 -0400)
committerRobert Haas <rhaas@postgresql.org>
Thu, 12 Jun 2014 19:43:18 +0000 (15:43 -0400)
src/backend/utils/mmgr/balloc.c

index fb751a9f75ddf71ed7b5bc51e6e952714289ca8e..b587d9dd563908ef2610e253cfd39f8993cd85f0 100644 (file)
@@ -261,6 +261,10 @@ BlockAllocatorAlloc(MemoryContext context, Size size)
         */
        if (!bcontext->private)
        {
+               /*
+                * XXX. This code is messed up!  Surely the MemoryContext object is
+                * in backend-private memory... it contains pointers!
+                */
                region = LookupAllocatorRegion(bcontext);
                if (region == NULL)
                        elog(ERROR, "AllocatorRegion not found");