From 4f700bcd20c087f60346cb8aefd0e269be8e2157 Mon Sep 17 00:00:00 2001 From: Heikki Linnakangas Date: Tue, 14 Apr 2015 17:03:42 +0300 Subject: Reorganize our CRC source files again. Now that we use CRC-32C in WAL and the control file, the "traditional" and "legacy" CRC-32 variants are not used in any frontend programs anymore. Move the code for those back from src/common to src/backend/utils/hash. Also move the slicing-by-8 implementation (back) to src/port. This is in preparation for next patch that will add another implementation that uses Intel SSE 4.2 instructions to calculate CRC-32C, where available. --- src/backend/access/transam/xloginsert.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/backend/access/transam/xloginsert.c') diff --git a/src/backend/access/transam/xloginsert.c b/src/backend/access/transam/xloginsert.c index 88209c3d163..618f8792f89 100644 --- a/src/backend/access/transam/xloginsert.c +++ b/src/backend/access/transam/xloginsert.c @@ -459,7 +459,7 @@ XLogRecordAssemble(RmgrId rmid, uint8 info, XLogRecData *rdt; uint32 total_len = 0; int block_id; - pg_crc32 rdata_crc; + pg_crc32c rdata_crc; registered_buffer *prev_regbuf = NULL; XLogRecData *rdt_datas_last; XLogRecord *rechdr; -- cgit v1.2.3