diff options
-rw-r--r-- | src/backend/access/transam/xlog.c | 4 | ||||
-rw-r--r-- | src/include/pg_config_manual.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/access/transam/xlog.c b/src/backend/access/transam/xlog.c index 46eef5f21ba..981d4e55274 100644 --- a/src/backend/access/transam/xlog.c +++ b/src/backend/access/transam/xlog.c @@ -409,7 +409,7 @@ typedef struct typedef union WALInsertLockPadded { WALInsertLock l; - char pad[CACHE_LINE_SIZE]; + char pad[PG_CACHE_LINE_SIZE]; } WALInsertLockPadded; /* @@ -436,7 +436,7 @@ typedef struct XLogCtlInsert * read on every WAL insertion, but updated rarely, and we don't want * those reads to steal the cache line containing Curr/PrevBytePos. */ - char pad[CACHE_LINE_SIZE]; + char pad[PG_CACHE_LINE_SIZE]; /* * fullPageWrites is the master copy used by all backends to determine diff --git a/src/include/pg_config_manual.h b/src/include/pg_config_manual.h index 195fb262811..9e25ce0fbb8 100644 --- a/src/include/pg_config_manual.h +++ b/src/include/pg_config_manual.h @@ -238,7 +238,7 @@ * bytes of wasted memory. The default is 128, which should be large enough * for all supported platforms. */ -#define CACHE_LINE_SIZE 128 +#define PG_CACHE_LINE_SIZE 128 /* *------------------------------------------------------------------------ |