summaryrefslogtreecommitdiff
path: root/src/backend/lib
diff options
context:
space:
mode:
authorAlexander Korotkov2024-04-11 13:30:32 +0000
committerAlexander Korotkov2024-04-11 14:28:15 +0000
commit772faafca1b288c4dd66b7150a7831c27b768003 (patch)
tree53ccb481bb8e8ca93feff18555734b706aa4ad7c /src/backend/lib
parent922c4c461d213a422ee7eb6c38e399607539210a (diff)
Revert: Implement pg_wal_replay_wait() stored procedure
This commit reverts 06c418e163, e37662f221, bf1e650806, 25f42429e2, ee79928441, and 74eaf66f98 per review by Heikki Linnakangas. Discussion: https://postgr.es/m/b155606b-e744-4218-bda5-29379779da1a%40iki.fi
Diffstat (limited to 'src/backend/lib')
-rw-r--r--src/backend/lib/pairingheap.c18
1 files changed, 2 insertions, 16 deletions
diff --git a/src/backend/lib/pairingheap.c b/src/backend/lib/pairingheap.c
index 7858e5e076b..fe1deba13ec 100644
--- a/src/backend/lib/pairingheap.c
+++ b/src/backend/lib/pairingheap.c
@@ -44,26 +44,12 @@ pairingheap_allocate(pairingheap_comparator compare, void *arg)
pairingheap *heap;
heap = (pairingheap *) palloc(sizeof(pairingheap));
- pairingheap_initialize(heap, compare, arg);
-
- return heap;
-}
-
-/*
- * pairingheap_initialize
- *
- * Same as pairingheap_allocate(), but initializes the pairing heap in-place
- * rather than allocating a new chunk of memory. Useful to store the pairing
- * heap in a shared memory.
- */
-void
-pairingheap_initialize(pairingheap *heap, pairingheap_comparator compare,
- void *arg)
-{
heap->ph_compare = compare;
heap->ph_arg = arg;
heap->ph_root = NULL;
+
+ return heap;
}
/*