Skip to content

Commit 67f29e1

Browse files
author
Sokolov Yura
committed
cfs: fix initalizing shared memory
1 parent d9d411b commit 67f29e1

File tree

1 file changed

+2
-1
lines changed
  • src/backend/storage/file

1 file changed

+2
-1
lines changed

src/backend/storage/file/cfs.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -398,7 +398,8 @@ int cfs_shmem_size()
398398
void cfs_initialize()
399399
{
400400
bool found;
401-
cfs_state = (CfsState*)ShmemInitStruct("CFS Control", sizeof(CfsState), &found);
401+
cfs_state = (CfsState*)ShmemInitStruct("CFS Control",
402+
sizeof(CfsState) + sizeof(pg_atomic_uint32)*MaxBackends, &found);
402403
if (!found)
403404
{
404405
int i;

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy