1
0
mirror of https://github.com/postgres/postgres.git synced 2025-08-24 09:27:52 +03:00

Rename CACHE_LINE_SIZE to PG_CACHE_LINE_SIZE.

As noted in http://bugs.debian.org/763098 there is a conflict between
postgres' definition of CACHE_LINE_SIZE and the definition by various
*bsd platforms. It's debatable who has the right to define such a
name, but postgres' use was only introduced in 375d8526f2 (9.4), so
it seems like a good idea to rename it.

Discussion: 20140930195756.GC27407@msg.df7cb.de

Per complaint of Christoph Berg in the above email, although he's not
the original bug reporter.

Backpatch to 9.4 where the define was introduced.
This commit is contained in:
Andres Freund
2014-10-01 11:54:05 +02:00
parent 8492d86342
commit ef8863844b
2 changed files with 3 additions and 3 deletions

View File

@@ -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
/*
*------------------------------------------------------------------------