Skip to content

Conversation

@danolivo
Copy link
Contributor

Refactor shared memory hook registration into a single spock_shmem.c module. This ensures only one shmem_request_hook and shmem_startup_hook are registered, and AddinShmemInitLock is acquired exactly once.

  • Add new spock_shmem.c/h for centralized initialization
  • Remove hook registration from spock_worker.c and spock_output_plugin.c
  • Add spock_worker_reset_shmem_pointers() for crash recovery
  • Replace separate init calls with single spock_shmem_init()

@danolivo danolivo requested a review from rasifr January 19, 2026 11:58
@danolivo danolivo self-assigned this Jan 19, 2026
@danolivo danolivo added the enhancement New feature or request label Jan 19, 2026
Refactor shared memory hook registration into a single spock_shmem.c
module. This ensures only one shmem_request_hook and shmem_startup_hook
are registered, and AddinShmemInitLock is acquired exactly once.

- Add new spock_shmem.c/h for centralized initialization
- Remove hook registration from spock_worker.c and spock_output_plugin.c
- Add spock_worker_reset_shmem_pointers() for crash recovery
- Replace separate init calls with single spock_shmem_init()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants