Skip to content

Commit

Permalink
Fix zero allocation during "pgcopydb list progress" (#891)
Browse files Browse the repository at this point in the history
Signed-off-by: Arunprasad Rajkumar <[email protected]>
arajkumar authored Dec 13, 2024
1 parent 24d8b18 commit ac62578
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bin/pgcopydb/progress.c
Original file line number Diff line number Diff line change
@@ -700,7 +700,7 @@ copydb_update_progress(CopyDataSpec *copySpecs, CopyProgress *progress)
}

progress->indexSummaryArray.count = 0;
progress->indexSummaryArray.capacity = 0;
progress->indexSummaryArray.capacity = ARRAY_CAPACITY_INCREMENT;
progress->indexSummaryArray.array =
(CopyIndexSummary *) calloc(progress->indexSummaryArray.capacity,
sizeof(CopyIndexSummary));

0 comments on commit ac62578

Please sign in to comment.