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)