|
1 |
| -commit 31aad7adad5d9f977e3a3623108ff81b82181d68 |
| 1 | +commit 84a43938a670336fbb203b85c7f5ea15d642aec2 |
2 | 2 | Author: Anton A. Melnikov <a.melnikov@postgrespro.ru>
|
3 | 3 | Date: Fri Oct 29 08:45:13 2021 +0300
|
4 | 4 |
|
5 |
| - [PGPRO-5771] Add handler for COMP_CRC32C and restore pg_comp_crc32c |
6 |
| - pointer definition. |
| 5 | + [PGPRO-5771] Add wrapper function for COMP_CRC32C and restore |
| 6 | + pg_comp_crc32c pointer definition. |
7 | 7 |
|
8 | 8 | Tags: ptrack
|
9 | 9 |
|
@@ -234,29 +234,29 @@ index 2618b4c957..bbba813fe7 100644
|
234 | 234 | {NULL, false}
|
235 | 235 | };
|
236 | 236 | diff --git a/src/common/checksum_helper.c b/src/common/checksum_helper.c
|
237 |
| -index 431e247d59..3d042ebb77 100644 |
| 237 | +index 431e247d59..405247a597 100644 |
238 | 238 | --- a/src/common/checksum_helper.c
|
239 | 239 | +++ b/src/common/checksum_helper.c
|
240 | 240 | @@ -230,3 +230,9 @@ pg_checksum_final(pg_checksum_context *context, uint8 *output)
|
241 | 241 | Assert(retval <= PG_CHECKSUM_MAX_LENGTH);
|
242 | 242 | return retval;
|
243 | 243 | }
|
244 | 244 | +
|
245 |
| -+pg_crc32c pg_comp_crc32c_handler(pg_crc32c *crc, const void *data, size_t len) |
| 245 | ++pg_crc32c comp_crc32c(pg_crc32c *crc, const void *data, size_t len) |
246 | 246 | +{
|
247 | 247 | + COMP_CRC32C(*crc, data, len);
|
248 | 248 | + return *crc;
|
249 | 249 | +}
|
250 | 250 | diff --git a/src/include/common/checksum_helper.h b/src/include/common/checksum_helper.h
|
251 |
| -index cac7570ea1..3f7287371b 100644 |
| 251 | +index cac7570ea1..8c002860cf 100644 |
252 | 252 | --- a/src/include/common/checksum_helper.h
|
253 | 253 | +++ b/src/include/common/checksum_helper.h
|
254 | 254 | @@ -68,5 +68,7 @@ extern int pg_checksum_init(pg_checksum_context *, pg_checksum_type);
|
255 | 255 | extern int pg_checksum_update(pg_checksum_context *, const uint8 *input,
|
256 | 256 | size_t len);
|
257 | 257 | extern int pg_checksum_final(pg_checksum_context *, uint8 *output);
|
258 | 258 | +extern pg_crc32c
|
259 |
| -+pg_comp_crc32c_handler(pg_crc32c *crc, const void *data, size_t len); |
| 259 | ++comp_crc32c(pg_crc32c *crc, const void *data, size_t len); |
260 | 260 |
|
261 | 261 | #endif
|
262 | 262 | diff --git a/src/include/miscadmin.h b/src/include/miscadmin.h
|
|
0 commit comments