Fix context reset to not corrupt the context.
authorRobert Haas <rhaas@postgresql.org>
Thu, 12 Jun 2014 19:59:25 +0000 (15:59 -0400)
committerRobert Haas <rhaas@postgresql.org>
Thu, 12 Jun 2014 19:59:25 +0000 (15:59 -0400)
src/backend/utils/mmgr/balloc.c

index e2da5fad8601d93d0b4eee15b06510df66b644ee..ce56b0c249588b61eab6dbded997608c74c038e8 100644 (file)
@@ -793,6 +793,8 @@ BlockAllocatorReset(MemoryContext context)
                                                                   span->npages);
                                span = nextspan;
                        }
+                       relptr_store(base, heap->spans[fclass],
+                                                (BlockAllocatorSpan *) NULL);
                }
        }
 }