File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -252,7 +252,7 @@ void state_shmem_request()
252
252
info .entrysize = sizeof (RaftableEntry );
253
253
info .dsize = info .max_dsize = hash_select_dirsize (RAFTABLE_HASH_SIZE );
254
254
flags = HASH_SHARED_MEM | HASH_ALLOC | HASH_DIRSIZE | HASH_ELEM ;
255
- RequestAddinShmemSpace (RAFTABLE_BLOCK_MEM + sizeof (State ) + hash_get_shared_size (& info , flags ));
255
+ RequestAddinShmemSpace (RAFTABLE_BLOCK_MEM + BUFFERALIGN ( sizeof (State )) + BUFFERALIGN ( hash_get_shared_size (& info , flags ) ));
256
256
RequestNamedLWLockTranche ("raftable" , 1 );
257
257
}
258
258
@@ -267,7 +267,7 @@ StateP state_shmem_init()
267
267
268
268
state = ShmemInitStruct (
269
269
"raftable_state" ,
270
- RAFTABLE_BLOCK_MEM ,
270
+ sizeof ( State ) ,
271
271
& found
272
272
);
273
273
Assert (state );
You can’t perform that action at this time.
0 commit comments