@@ -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 ||
@@ -4344,7 +4343,7 @@ restore_toc_entries_prefork(ArchiveHandle *AH, TocEntry *pending_list)
4344
4343
* not set skipped_some in this case, since by assumption no main-pass
4345
4344
* items could depend on these.
4346
4345
*/
4347
- if (_tocEntryRestorePass (AH , next_work_item ) != RESTORE_PASS_MAIN )
4346
+ if (_tocEntryRestorePass (next_work_item ) != RESTORE_PASS_MAIN )
4348
4347
do_now = false;
4349
4348
4350
4349
if (do_now )
@@ -4426,7 +4425,7 @@ restore_toc_entries_parallel(ArchiveHandle *AH, ParallelState *pstate,
4426
4425
* process in the current restore pass.
4427
4426
*/
4428
4427
AH -> restorePass = RESTORE_PASS_MAIN ;
4429
- move_to_ready_heap (AH , pending_list , ready_heap , AH -> restorePass );
4428
+ move_to_ready_heap (pending_list , ready_heap , AH -> restorePass );
4430
4429
4431
4430
/*
4432
4431
* main parent loop
@@ -4475,7 +4474,7 @@ restore_toc_entries_parallel(ArchiveHandle *AH, ParallelState *pstate,
4475
4474
/* Advance to next restore pass */
4476
4475
AH -> restorePass ++ ;
4477
4476
/* That probably allows some stuff to be made ready */
4478
- move_to_ready_heap (AH , pending_list , ready_heap , AH -> restorePass );
4477
+ move_to_ready_heap (pending_list , ready_heap , AH -> restorePass );
4479
4478
/* Loop around to see if anything's now ready */
4480
4479
continue ;
4481
4480
}
@@ -4646,8 +4645,7 @@ TocEntrySizeCompareBinaryheap(void *p1, void *p2, void *arg)
4646
4645
* which applies the same logic one-at-a-time.)
4647
4646
*/
4648
4647
static void
4649
- move_to_ready_heap (ArchiveHandle * AH ,
4650
- TocEntry * pending_list ,
4648
+ move_to_ready_heap (TocEntry * pending_list ,
4651
4649
binaryheap * ready_heap ,
4652
4650
RestorePass pass )
4653
4651
{
@@ -4660,7 +4658,7 @@ move_to_ready_heap(ArchiveHandle *AH,
4660
4658
next_te = te -> pending_next ;
4661
4659
4662
4660
if (te -> depCount == 0 &&
4663
- _tocEntryRestorePass (AH , te ) == pass )
4661
+ _tocEntryRestorePass (te ) == pass )
4664
4662
{
4665
4663
/* Remove it from pending_list ... */
4666
4664
pending_list_remove (te );
@@ -5054,7 +5052,7 @@ reduce_dependencies(ArchiveHandle *AH, TocEntry *te,
5054
5052
* memberships changed.
5055
5053
*/
5056
5054
if (otherte -> depCount == 0 &&
5057
- _tocEntryRestorePass (AH , otherte ) == AH -> restorePass &&
5055
+ _tocEntryRestorePass (otherte ) == AH -> restorePass &&
5058
5056
otherte -> pending_prev != NULL &&
5059
5057
ready_heap != NULL )
5060
5058
{
0 commit comments