Reorganize CIB op handler functions and start on based_remote.c#4021
Reorganize CIB op handler functions and start on based_remote.c#4021nrwahl2 merged 35 commits intoClusterLabs:mainfrom
Conversation
Signed-off-by: Reid Wahl <nrwahl@protonmail.com>
Nothing uses the return value. Signed-off-by: Reid Wahl <nrwahl@protonmail.com>
* Use "based_" prefix. * Add Doxygen. * Move definition to align with order in based_operation.c table. Signed-off-by: Reid Wahl <nrwahl@protonmail.com>
Rename the function to match the request name. Also move the definition to match the order in the operation table. Signed-off-by: Reid Wahl <nrwahl@protonmail.com>
Signed-off-by: Reid Wahl <nrwahl@protonmail.com>
Rename the function to match the request name and to use the internal prefix. Also move the definition to match the order in the operation table. Signed-off-by: Reid Wahl <nrwahl@protonmail.com>
Rename the function to use the internal prefix. Also move the definition to match the order in the operation table. Signed-off-by: Reid Wahl <nrwahl@protonmail.com>
...to based_process_commit_transact(). Rename the function to match the request name. Also move the definition to match the order in the operation table. Signed-off-by: Reid Wahl <nrwahl@protonmail.com>
To avoid using the public API prefix. Signed-off-by: Reid Wahl <nrwahl@protonmail.com>
To avoid using the public API prefix. Signed-off-by: Reid Wahl <nrwahl@protonmail.com>
We can't avoid a forward declaration altogether, but forward-declare get_op_functions() instead. It seems more reasonable for the commit_transact handler to be defined above the table that uses it. No code changes (aside from renaming file_get_op_functions() to get_op_functions()); it only moves. 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>
Rename the function to use the internal prefix. Also move the definition to match the order in the operation table. Signed-off-by: Reid Wahl <nrwahl@protonmail.com>
Rename the function to use the internal prefix. Also move the definition to match the order in the operation table. Signed-off-by: Reid Wahl <nrwahl@protonmail.com>
And rename to process_xpath(), to avoid using the public API prefix. Signed-off-by: Reid Wahl <nrwahl@protonmail.com>
These were missed in recent commits. Signed-off-by: Reid Wahl <nrwahl@protonmail.com>
Rename the function to use the internal prefix. Also move the definition to match the order in the operation table. Signed-off-by: Reid Wahl <nrwahl@protonmail.com>
The new function's name matches the request name. Signed-off-by: Reid Wahl <nrwahl@protonmail.com>
Rename the function to use the internal prefix. Also move the definition to match the order in the operation table. Signed-off-by: Reid Wahl <nrwahl@protonmail.com>
Avoid using the public API prefix. Also move the definition to match the order in the operation table. Signed-off-by: Reid Wahl <nrwahl@protonmail.com>
Avoid using the public API prefix. Also move the definition to match the order in the operation table. Signed-off-by: Reid Wahl <nrwahl@protonmail.com>
The new function's name matches the request name. Signed-off-by: Reid Wahl <nrwahl@protonmail.com>
Rename the function to use the internal prefix. Signed-off-by: Reid Wahl <nrwahl@protonmail.com>
Avoid using the public API prefix. Also move the definition to match the order in the operation table. Signed-off-by: Reid Wahl <nrwahl@protonmail.com>
Avoid using the public API prefix. The new function's name also matches the request name. Signed-off-by: Reid Wahl <nrwahl@protonmail.com>
Avoid using the public API prefix. Rename to match request name. Also move the definition to match the order in the operation table. Signed-off-by: Reid Wahl <nrwahl@protonmail.com>
To match the request names. Signed-off-by: Reid Wahl <nrwahl@protonmail.com>
Avoid using the public API prefix. Rename to match request name. Also move the definition to match the order in the operation table. Signed-off-by: Reid Wahl <nrwahl@protonmail.com>
Avoid using the public API prefix. Rename to match request name. Also move the definition to match the order in the operation table. Signed-off-by: Reid Wahl <nrwahl@protonmail.com>
Avoid using the public API prefix. Rename to match request name. Also move the definition to match the order in the operation table. Signed-off-by: Reid Wahl <nrwahl@protonmail.com>
Avoid using the public API prefix. Also move the definition to match the order in the operation table. Signed-off-by: Reid Wahl <nrwahl@protonmail.com>
Rename the function to use the internal prefix. Also move the definition to match the order in the operation table. Signed-off-by: Reid Wahl <nrwahl@protonmail.com>
Rename the function to use the internal prefix. Signed-off-by: Reid Wahl <nrwahl@protonmail.com>
| * \internal | ||
| * \brief Process a \c PCMK__CIB_REQUEST_ABS_DELETE | ||
| * | ||
| * \param[in] op Ignored |
There was a problem hiding this comment.
I ended up not getting around to Doxygen for others yet. Probably at some point.
|
@clumens Almost all of this is trivial, so don't let the number of commits or lines changed discourage you |
a7f2155 to
fcbb547
Compare
daemons/based/pacemaker-based.c
Outdated
| } | ||
|
|
||
| cib_read_config(config_hash, cib); | ||
| cib_read_config(config_hash, the_cib); |
There was a problem hiding this comment.
FYI we end up getting rid of config_hash completely and dropping this call, but that commit didn't make it into this PR.
fcbb547 to
1211540
Compare
|
Everything before Refactor: based: New based_remote.h looks good, if you want to go ahead and merge just that part now. You can also wait and I'll take a look at the rest soon. |
1211540 to
be9e788
Compare
Dropped all commits starting with |
This is the next batch from #4011