MCPcopy Create free account
hub / github.com/apache/cloudberry / extend_pattern_info_array

Function extend_pattern_info_array

src/bin/pg_amcheck/pg_amcheck.c:1320–1331  ·  view source on GitHub ↗

* Extend the pattern info array to hold one additional initialized pattern * info entry. * * Returns a pointer to the new entry. */

Source from the content-addressed store, hash-verified

1318 * Returns a pointer to the new entry.
1319 */
1320static PatternInfo *
1321extend_pattern_info_array(PatternInfoArray *pia)
1322{
1323 PatternInfo *result;
1324
1325 pia->len++;
1326 pia->data = (PatternInfo *) pg_realloc(pia->data, pia->len * sizeof(PatternInfo));
1327 result = &pia->data[pia->len - 1];
1328 memset(result, 0, sizeof(*result));
1329
1330 return result;
1331}
1332
1333/*
1334 * append_database_pattern

Callers 3

append_database_patternFunction · 0.85
append_schema_patternFunction · 0.85

Calls 1

pg_reallocFunction · 0.85

Tested by

no test coverage detected