@@ -72,7 +72,7 @@ static void processEncodingEntry(ArchiveHandle *AH, TocEntry *te);
72
72
static void processStdStringsEntry (ArchiveHandle * AH , TocEntry * te );
73
73
static void processSearchPathEntry (ArchiveHandle * AH , TocEntry * te );
74
74
static int _tocEntryRequired (TocEntry * te , teSection curSection , ArchiveHandle * AH );
75
- static RestorePass _tocEntryRestorePass (ArchiveHandle * AH , TocEntry * te );
75
+ static RestorePass _tocEntryRestorePass (TocEntry * te );
76
76
static bool _tocEntryIsACL (TocEntry * te );
77
77
static void _disableTriggersIfNecessary (ArchiveHandle * AH , TocEntry * te );
78
78
static void _enableTriggersIfNecessary (ArchiveHandle * AH , TocEntry * te );
@@ -102,8 +102,7 @@ static void pending_list_append(TocEntry *l, TocEntry *te);
102
102
static void pending_list_remove (TocEntry * te );
103
103
static int TocEntrySizeCompareQsort (const void * p1 , const void * p2 );
104
104
static int TocEntrySizeCompareBinaryheap (void * p1 , void * p2 , void * arg );
105
- static void move_to_ready_heap (ArchiveHandle * AH ,
106
- TocEntry * pending_list ,
105
+ static void move_to_ready_heap (TocEntry * pending_list ,
107
106
binaryheap * ready_heap ,
108
107
RestorePass pass );
109
108
static TocEntry * pop_next_work_item (binaryheap * ready_heap ,
@@ -749,7 +748,7 @@ RestoreArchive(Archive *AHX)
749
748
if ((te -> reqs & (REQ_SCHEMA | REQ_DATA | REQ_STATS )) == 0 )
750
749
continue ; /* ignore if not to be dumped at all */
751
750
752
- switch (_tocEntryRestorePass (AH , te ))
751
+ switch (_tocEntryRestorePass (te ))
753
752
{
754
753
case RESTORE_PASS_MAIN :
755
754
(void ) restore_toc_entry (AH , te , false);
@@ -768,7 +767,7 @@ RestoreArchive(Archive *AHX)
768
767
for (te = AH -> toc -> next ; te != AH -> toc ; te = te -> next )
769
768
{
770
769
if ((te -> reqs & (REQ_SCHEMA | REQ_DATA | REQ_STATS )) != 0 &&
771
- _tocEntryRestorePass (AH , te ) == RESTORE_PASS_ACL )
770
+ _tocEntryRestorePass (te ) == RESTORE_PASS_ACL )
772
771
(void ) restore_toc_entry (AH , te , false);
773
772
}
774
773
}
@@ -778,7 +777,7 @@ RestoreArchive(Archive *AHX)
778
777
for (te = AH -> toc -> next ; te != AH -> toc ; te = te -> next )
779
778
{
780
779
if ((te -> reqs & (REQ_SCHEMA | REQ_DATA | REQ_STATS )) != 0 &&
781
- _tocEntryRestorePass (AH , te ) == RESTORE_PASS_POST_ACL )
780
+ _tocEntryRestorePass (te ) == RESTORE_PASS_POST_ACL )
782
781
(void ) restore_toc_entry (AH , te , false);
783
782
}
784
783
}
@@ -3261,7 +3260,7 @@ _tocEntryRequired(TocEntry *te, teSection curSection, ArchiveHandle *AH)
3261
3260
* See notes with the RestorePass typedef in pg_backup_archiver.h.
3262
3261
*/
3263
3262
static RestorePass
3264
- _tocEntryRestorePass (ArchiveHandle * AH , TocEntry * te )
3263
+ _tocEntryRestorePass (TocEntry * te )
3265
3264
{
3266
3265
/* "ACL LANGUAGE" was a crock emitted only in PG 7.4 */
3267
3266
if (strcmp (te -> desc , "ACL" ) == 0 ||
@@ -4342,7 +4341,7 @@ restore_toc_entries_prefork(ArchiveHandle *AH, TocEntry *pending_list)
4342
4341
* not set skipped_some in this case, since by assumption no main-pass
4343
4342
* items could depend on these.
4344
4343
*/
4345
- if (_tocEntryRestorePass (AH , next_work_item ) != RESTORE_PASS_MAIN )
4344
+ if (_tocEntryRestorePass (next_work_item ) != RESTORE_PASS_MAIN )
4346
4345
do_now = false;
4347
4346
4348
4347
if (do_now )
@@ -4424,7 +4423,7 @@ restore_toc_entries_parallel(ArchiveHandle *AH, ParallelState *pstate,
4424
4423
* process in the current restore pass.
4425
4424
*/
4426
4425
AH -> restorePass = RESTORE_PASS_MAIN ;
4427
- move_to_ready_heap (AH , pending_list , ready_heap , AH -> restorePass );
4426
+ move_to_ready_heap (pending_list , ready_heap , AH -> restorePass );
4428
4427
4429
4428
/*
4430
4429
* main parent loop
@@ -4473,7 +4472,7 @@ restore_toc_entries_parallel(ArchiveHandle *AH, ParallelState *pstate,
4473
4472
/* Advance to next restore pass */
4474
4473
AH -> restorePass ++ ;
4475
4474
/* That probably allows some stuff to be made ready */
4476
- move_to_ready_heap (AH , pending_list , ready_heap , AH -> restorePass );
4475
+ move_to_ready_heap (pending_list , ready_heap , AH -> restorePass );
4477
4476
/* Loop around to see if anything's now ready */
4478
4477
continue ;
4479
4478
}
@@ -4644,8 +4643,7 @@ TocEntrySizeCompareBinaryheap(void *p1, void *p2, void *arg)
4644
4643
* which applies the same logic one-at-a-time.)
4645
4644
*/
4646
4645
static void
4647
- move_to_ready_heap (ArchiveHandle * AH ,
4648
- TocEntry * pending_list ,
4646
+ move_to_ready_heap (TocEntry * pending_list ,
4649
4647
binaryheap * ready_heap ,
4650
4648
RestorePass pass )
4651
4649
{
@@ -4658,7 +4656,7 @@ move_to_ready_heap(ArchiveHandle *AH,
4658
4656
next_te = te -> pending_next ;
4659
4657
4660
4658
if (te -> depCount == 0 &&
4661
- _tocEntryRestorePass (AH , te ) == pass )
4659
+ _tocEntryRestorePass (te ) == pass )
4662
4660
{
4663
4661
/* Remove it from pending_list ... */
4664
4662
pending_list_remove (te );
@@ -5052,7 +5050,7 @@ reduce_dependencies(ArchiveHandle *AH, TocEntry *te,
5052
5050
* memberships changed.
5053
5051
*/
5054
5052
if (otherte -> depCount == 0 &&
5055
- _tocEntryRestorePass (AH , otherte ) == AH -> restorePass &&
5053
+ _tocEntryRestorePass (otherte ) == AH -> restorePass &&
5056
5054
otherte -> pending_prev != NULL &&
5057
5055
ready_heap != NULL )
5058
5056
{
0 commit comments