Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit67f29e1

Browse files
author
Sokolov Yura
committed
cfs: fix initalizing shared memory
1 parentd9d411b commit67f29e1

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
voidcfs_initialize()
399399
{
400400
boolfound;
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
inti;

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp