Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
7d41bff
Refactor: based: Rename crm_cluster to based_cluster
nrwahl2 Jan 6, 2026
96cbc3a
Refactor: based: Don't create based_cluster if in stand-alone mode
nrwahl2 Jan 6, 2026
e0cec39
Refactor: based: New based_ipc_init() and based_ipc.h
nrwahl2 Jan 6, 2026
7d36954
Refactor: based: Unindent cib_init()
nrwahl2 Jan 7, 2026
50ebf2c
Refactor: based: New based_ipc_cleanup()
nrwahl2 Jan 6, 2026
47b1575
Low: based: Move based_ipc_cleanup() call to based_terminate()
nrwahl2 Jan 6, 2026
03f030d
Refactor: based: Functionize remote fd closure in based_remote.c
nrwahl2 Jan 6, 2026
db711bd
Refactor: based: New based_cluster_connect()
nrwahl2 Jan 7, 2026
fd7da62
Refactor: based: Pull cib_init() body into main()
nrwahl2 Jan 7, 2026
3a37228
Refactor: based: Move based_io_init() call just before based_read_cib()
nrwahl2 Jan 7, 2026
0506756
Refactor: based: Set based_is_primary in setup_stand_alone()
nrwahl2 Jan 7, 2026
80fa78d
Refactor: based: New based_corosync.c for cluster-related functions
nrwahl2 Jan 7, 2026
58a18b7
Refactor: libcrmcluster: Don't init caches in pcmk__corosync_connect()
nrwahl2 Jan 7, 2026
e938392
Refactor: libcrmcluster: Clean up includes in corosync.c
nrwahl2 Jan 7, 2026
96a8ec2
Refactor: libcrmcluster: Destroy caches unconditionally on disconnect
nrwahl2 Jan 7, 2026
baec1a4
Refactor: based: New based_cluster_disconnect()
nrwahl2 Jan 7, 2026
77d3c90
Refactor: attrd, fencer: Set cluster pointer to NULL after freeing
nrwahl2 Jan 7, 2026
4a23dad
Fix: libcrmcluster: NULL to pcmk_cluster_disconnect() returns EINVAL
nrwahl2 Jan 7, 2026
46b41d7
Refactor: various: Use g_clear_pointer() with mainloop_del_*() functions
nrwahl2 May 2, 2026
76855dd
Refactor: based: Rename corosync callback functions
nrwahl2 Jan 7, 2026
6263d1a
Refactor: based: Don't send shutdown request
nrwahl2 Jan 10, 2026
aad9585
Refactor: based: Move based_shutdown() to pacemaker-based.c
nrwahl2 Jan 7, 2026
c8c0477
Refactor: based: New based_cluster_node_name()
nrwahl2 Jan 7, 2026
c445c00
Refactor: based: Make based_cluster static
nrwahl2 Jan 7, 2026
b365060
Refactor: based: New based_shutting_down()
nrwahl2 Jan 7, 2026
7730420
Refactor: based: New based_stand_alone()
nrwahl2 Jan 7, 2026
311a73c
Refactor: based: New based_{get,set}_local_node_dc()
nrwahl2 Jan 7, 2026
7d58238
Refactor: based: Rename the_cib to based_cib
nrwahl2 Jan 7, 2026
fa832bb
Refactor: controller: Destroy SIGCHLD handler sooner
nrwahl2 Jul 2, 2026
64143d2
Doc: controller: Drop unhelpful comments from crmd_exit()
nrwahl2 Jul 2, 2026
61e63ea
Refactor: controller: Drop unhelpful trace messages in crmd_exit()
nrwahl2 Jul 2, 2026
74e4d5d
Refactor: controller: Some best practices in crmd_exit()
nrwahl2 Jul 2, 2026
9b3e1dd
Refactor: based: Drop OUR_NODENAME from forward_request()
nrwahl2 Jul 2, 2026
86c559d
Refactor: based: Drop OUR_NODENAME from parse_peer_options()
nrwahl2 Jul 2, 2026
829ab5e
Refactor: based: Drop OUR_NODENAME from based_perform_op_rw()
nrwahl2 Jul 3, 2026
dfe77aa
Refactor: based: Drop OUR_NODENAME from based_process_request()
nrwahl2 Jul 3, 2026
54f5f93
Refactor: based: Drop OUR_NODENAME from log_local_options()
nrwahl2 Jul 3, 2026
3cb83a6
Refactor: based: Drop OUR_NODENAME from based_process_request()
nrwahl2 Jul 3, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 15 additions & 1 deletion daemons/attrd/attrd_corosync.c
Original file line number Diff line number Diff line change
Expand Up @@ -487,6 +487,12 @@ broadcast_unseen_local_values(void)
}
}

/*!
* \internal
* \brief Initialize \c attrd_cluster and connect to the cluster layer
*
* \return Standard Pacemaker return code
*/
int
attrd_cluster_connect(void)
{
Expand All @@ -512,11 +518,19 @@ attrd_cluster_connect(void)
return rc;
}

/*!
* \internal
* \brief Disconnect from the cluster layer and free \c attrd_cluster
*/
void
attrd_cluster_disconnect(void)
{
if (attrd_cluster == NULL) {
return;
}

pcmk_cluster_disconnect(attrd_cluster);
pcmk_cluster_free(attrd_cluster);
g_clear_pointer(&attrd_cluster, pcmk_cluster_free);
}

void
Expand Down
3 changes: 3 additions & 0 deletions daemons/based/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ halibdir = $(CRM_DAEMON_DIR)
halib_PROGRAMS = pacemaker-based

noinst_HEADERS = based_callbacks.h
noinst_HEADERS += based_corosync.h
noinst_HEADERS += based_io.h
noinst_HEADERS += based_ipc.h
noinst_HEADERS += based_messages.h
noinst_HEADERS += based_notify.h
noinst_HEADERS += based_operation.h
Expand All @@ -33,6 +35,7 @@ pacemaker_based_LDADD += $(CLUSTERLIBS) $(PAM_LIBS)

pacemaker_based_SOURCES = pacemaker-based.c
pacemaker_based_SOURCES += based_callbacks.c
pacemaker_based_SOURCES += based_corosync.c
pacemaker_based_SOURCES += based_io.c
pacemaker_based_SOURCES += based_ipc.c
pacemaker_based_SOURCES += based_messages.c
Expand Down
Loading