mirror of
https://github.com/postgres/postgres.git
synced 2025-11-22 12:22:45 +03:00
Revert indexed and enlargable binary heap implementation.
This reverts commitb840508644andbcb14f4abc. These commits were made for commit5bec1d6bc5(Improve eviction algorithm in ReorderBuffer using max-heap for many subtransactions). However, per discussion, commitefb8acc0d0replaced binary heap + index with pairing heap, and made these commits unnecessary. Reported-by: Jeff Davis Discussion: https://postgr.es/m/12747c15811d94efcc5cda72d6b35c80d7bf3443.camel%40j-davis.com
This commit is contained in:
@@ -258,8 +258,7 @@ PgArchiverMain(char *startup_data, size_t startup_data_len)
|
||||
|
||||
/* Initialize our max-heap for prioritizing files to archive. */
|
||||
arch_files->arch_heap = binaryheap_allocate(NUM_FILES_PER_DIRECTORY_SCAN,
|
||||
ready_file_comparator, false,
|
||||
NULL);
|
||||
ready_file_comparator, NULL);
|
||||
|
||||
/* Initialize our memory context. */
|
||||
archive_context = AllocSetContextCreate(TopMemoryContext,
|
||||
|
||||
Reference in New Issue
Block a user