From 0896ae561b6c799d45cb61d8a3b18fbb442130a7 Mon Sep 17 00:00:00 2001 From: Michael Paquier Date: Tue, 16 Jul 2019 13:23:53 +0900 Subject: Fix inconsistencies and typos in the tree This is numbered take 7, and addresses a set of issues around: - Fixes for typos and incorrect reference names. - Removal of unneeded comments. - Removal of unreferenced functions and structures. - Fixes regarding variable name consistency. Author: Alexander Lakhin Discussion: https://postgr.es/m/10bfd4ac-3e7c-40ab-2b2e-355ed15495e8@gmail.com --- src/backend/access/spgist/spgscan.c | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src/backend/access/spgist') diff --git a/src/backend/access/spgist/spgscan.c b/src/backend/access/spgist/spgscan.c index 7bc5ec09bf9..557dd18d7e8 100644 --- a/src/backend/access/spgist/spgscan.c +++ b/src/backend/access/spgist/spgscan.c @@ -146,11 +146,6 @@ resetSpGistScanOpaque(SpGistScanOpaque so) { MemoryContext oldCtx; - /* - * clear traversal context before proceeding to the next scan; this must - * not happen before the freeScanStack above, else we get double-free - * crashes. - */ MemoryContextReset(so->traversalCxt); oldCtx = MemoryContextSwitchTo(so->traversalCxt); -- cgit v1.2.3