Skip to content

Commit

Permalink
Do not create DSM segment for wal_redo_postgres (#9793)
Browse files Browse the repository at this point in the history
## Problem

See  #9738

## Summary of changes

Do not create DSM segment for wal_redo Postgres

---------

Co-authored-by: Konstantin Knizhnik <[email protected]>
  • Loading branch information
knizhnik and Konstantin Knizhnik authored Nov 19, 2024
1 parent 982cb1c commit c9acd21
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions pgxn/neon_walredo/walredoproc.c
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,6 @@ WalRedoMain(int argc, char *argv[])
static void
CreateFakeSharedMemoryAndSemaphores(void)
{
PGShmemHeader *shim = NULL;
PGShmemHeader *hdr;
Size size;
int numSemas;
Expand Down Expand Up @@ -486,7 +485,6 @@ CreateFakeSharedMemoryAndSemaphores(void)
hdr->totalsize = size;
hdr->freeoffset = MAXALIGN(sizeof(PGShmemHeader));

shim = hdr;
UsedShmemSegAddr = hdr;
UsedShmemSegID = (unsigned long) 42; /* not relevant for non-shared memory */
}
Expand Down Expand Up @@ -523,8 +521,6 @@ CreateFakeSharedMemoryAndSemaphores(void)
*/
InitShmemIndex();

dsm_shmem_init();

/*
* Set up xlog, clog, and buffers
*/
Expand Down Expand Up @@ -599,10 +595,6 @@ CreateFakeSharedMemoryAndSemaphores(void)
ShmemBackendArrayAllocation();
#endif

/* Initialize dynamic shared memory facilities. */
if (!IsUnderPostmaster)
dsm_postmaster_startup(shim);

/*
* Now give loadable modules a chance to set up their shmem allocations
*/
Expand Down

1 comment on commit c9acd21

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

5590 tests run: 5354 passed, 0 failed, 236 skipped (full report)


Code coverage* (full report)

  • functions: 31.5% (7935 of 25219 functions)
  • lines: 49.6% (62950 of 126918 lines)

* collected from Rust tests only


The comment gets automatically updated with the latest test results
c9acd21 at 2024-11-19T11:34:45.680Z :recycle:

Please sign in to comment.