summaryrefslogtreecommitdiff
path: root/src/backend/utils/cache/relmapper.c
diff options
context:
space:
mode:
authorHeikki Linnakangas <heikki.linnakangas@iki.fi>2015-04-14 17:03:42 +0300
committerHeikki Linnakangas <heikki.linnakangas@iki.fi>2015-04-14 17:03:42 +0300
commit4f700bcd20c087f60346cb8aefd0e269be8e2157 (patch)
tree096d9993ab5fa4baca490af8abdc500d64d7c63b /src/backend/utils/cache/relmapper.c
parentd577bb868dfb595aa8df95974cd1c79e1baba924 (diff)
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.
Diffstat (limited to 'src/backend/utils/cache/relmapper.c')
-rw-r--r--src/backend/utils/cache/relmapper.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/backend/utils/cache/relmapper.c b/src/backend/utils/cache/relmapper.c
index 48b83516769..c151b92dfc3 100644
--- a/src/backend/utils/cache/relmapper.c
+++ b/src/backend/utils/cache/relmapper.c
@@ -86,7 +86,7 @@ typedef struct RelMapFile
int32 magic; /* always RELMAPPER_FILEMAGIC */
int32 num_mappings; /* number of valid RelMapping entries */
RelMapping mappings[MAX_MAPPINGS];
- pg_crc32 crc; /* CRC of all above */
+ pg_crc32c crc; /* CRC of all above */
int32 pad; /* to make the struct size be 512 exactly */
} RelMapFile;
@@ -626,7 +626,7 @@ load_relmap_file(bool shared)
{
RelMapFile *map;
char mapfilename[MAXPGPATH];
- pg_crc32 crc;
+ pg_crc32c crc;
int fd;
if (shared)