mirror of
https://github.com/postgres/postgres.git
synced 2025-11-06 07:49:08 +03:00
Revert: Implement pg_wal_replay_wait() stored procedure
This commit reverts06c418e163,e37662f221,bf1e650806,25f42429e2,ee79928441, and74eaf66f98per review by Heikki Linnakangas. Discussion: https://postgr.es/m/b155606b-e744-4218-bda5-29379779da1a%40iki.fi
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user