mirror of
https://github.com/postgres/postgres.git
synced 2025-11-04 20:11:56 +03:00
Rearrange some static assertions for consistency
Put lengthof first. Reported-by: Peter Smith <smithpb2250@gmail.com> Discussion: https://www.postgresql.org/message-id/CAHut+PsUDMySVRuRc=h+P5N3+=TGvj4W_mi32XXg9dt4o-BXbA@mail.gmail.com
This commit is contained in:
2
src/backend/utils/cache/syscache.c
vendored
2
src/backend/utils/cache/syscache.c
vendored
@@ -1068,7 +1068,7 @@ InitCatalogCache(void)
|
||||
{
|
||||
int cacheId;
|
||||
|
||||
StaticAssertStmt(SysCacheSize == (int) lengthof(cacheinfo),
|
||||
StaticAssertStmt(lengthof(cacheinfo) == SysCacheSize,
|
||||
"SysCacheSize does not match syscache.c's array");
|
||||
|
||||
Assert(!CacheInitialized);
|
||||
|
||||
Reference in New Issue
Block a user