Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
1 change: 1 addition & 0 deletions include/crm/cib/internal.h
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,7 @@ cib__client_triggers_refresh(const char *name)
return (pcmk__parse_server(name) == pcmk_ipc_unknown)
&& !pcmk__str_any_of(name,
"attrd_updater",
"cibadmin_status",
"crm_attribute",
"crm_node",
"crm_resource",
Expand Down
9 changes: 8 additions & 1 deletion tools/cibadmin.c
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,7 @@ static struct {
gboolean input_stdin;
gboolean allow_create;
gboolean force;
gboolean update_status;
gboolean get_node_path;
gboolean no_children;
gboolean score_update;
Expand Down Expand Up @@ -808,6 +809,11 @@ static GOptionEntry addl_entries[] = {
"result",
NULL },

{ "update-status", 'u', G_OPTION_FLAG_NONE, G_OPTION_ARG_NONE,
&options.update_status,
"(Advanced) Apply CIB update without triggering a controller refresh",
NULL },

// @COMPAT Deprecated since 3.0.0
{ "local", 'l', G_OPTION_FLAG_HIDDEN, G_OPTION_ARG_NONE, &options.local,
"(deprecated)", NULL },
Expand Down Expand Up @@ -1088,7 +1094,8 @@ main(int argc, char **argv)
* In cibadmin we explicitly output the XML portion without the prefixes. So
* we default to LOG_CRIT.
*/
pcmk__cli_init_logging("cibadmin", 0);
pcmk__cli_init_logging(
options.update_status? "cibadmin_status" : "cibadmin", 0);
set_crm_log_level(LOG_CRIT);

if (args->verbosity > 0) {
Expand Down