Skip to content

Split controld_remote_proxy_cb() into helper functions#4104

Merged
clumens merged 17 commits into
ClusterLabs:mainfrom
nrwahl2:nrwahl2-proxy
May 14, 2026
Merged

Split controld_remote_proxy_cb() into helper functions#4104
clumens merged 17 commits into
ClusterLabs:mainfrom
nrwahl2:nrwahl2-proxy

Conversation

@nrwahl2
Copy link
Copy Markdown
Contributor

@nrwahl2 nrwahl2 commented May 6, 2026

No description provided.

nrwahl2 added 7 commits May 6, 2026 10:00
Signed-off-by: Reid Wahl <nrwahl@protonmail.com>
Signed-off-by: Reid Wahl <nrwahl@protonmail.com>
Signed-off-by: Reid Wahl <nrwahl@protonmail.com>
Signed-off-by: Reid Wahl <nrwahl@protonmail.com>
To controld_remote_ra_in_maintenance(). Also return bool and take a
const argument.

Signed-off-by: Reid Wahl <nrwahl@protonmail.com>
To controld_remote_ra_controlling_guest(). Also return bool and take a
const argument.

Signed-off-by: Reid Wahl <nrwahl@protonmail.com>
Signed-off-by: Reid Wahl <nrwahl@protonmail.com>
@nrwahl2 nrwahl2 requested a review from clumens May 6, 2026 17:01
/* This is msg from remote ipc client going to real ipc server */

if (pcmk__str_eq(op, LRMD_IPC_OP_NEW, pcmk__str_casei)) {
if (pcmk__str_eq(op, LRMD_IPC_OP_NEW, pcmk__str_none)) {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

ACK, but it looks like there's a fair number of places where we're still comparing operations case-sensitively (grep -r pcmk__str_eq | grep _OP_). There doesn't appear to be any consistency to this. I suppose it's just things getting cleaned up as they're discovered.

Copy link
Copy Markdown
Contributor Author

@nrwahl2 nrwahl2 May 6, 2026

Choose a reason for hiding this comment

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

That's been exactly it.

I started to go change other comparisons just now, but I think it's going to create more conflicts in my other branches, and I'd rather not deal with that.

Comment thread daemons/controld/controld_remote_proxy.c Outdated
Comment thread daemons/controld/controld_remote_proxy.c Outdated
Comment thread daemons/controld/controld_remote_proxy.c
nrwahl2 added 10 commits May 6, 2026 13:47
Signed-off-by: Reid Wahl <nrwahl@protonmail.com>
Signed-off-by: Reid Wahl <nrwahl@protonmail.com>
Signed-off-by: Reid Wahl <nrwahl@protonmail.com>
Signed-off-by: Reid Wahl <nrwahl@protonmail.com>
Signed-off-by: Reid Wahl <nrwahl@protonmail.com>
Signed-off-by: Reid Wahl <nrwahl@protonmail.com>
Signed-off-by: Reid Wahl <nrwahl@protonmail.com>
Signed-off-by: Reid Wahl <nrwahl@protonmail.com>
Signed-off-by: Reid Wahl <nrwahl@protonmail.com>
And clean up a couple of comments.

Signed-off-by: Reid Wahl <nrwahl@protonmail.com>
@clumens clumens added the review: in progress PRs that are currently being reviewed label May 14, 2026
Comment thread daemons/controld/controld_remote_proxy.c Outdated
@clumens clumens merged commit 0015a89 into ClusterLabs:main May 14, 2026
1 check passed
@nrwahl2 nrwahl2 deleted the nrwahl2-proxy branch May 15, 2026 07:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

review: in progress PRs that are currently being reviewed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants